Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Do Javascript ao React: aprendendo e se adaptan...
Search
Juliana Negreiros
October 08, 2018
Technology
0
30
Do Javascript ao React: aprendendo e se adaptando a mudanças aula 1 | From Javascript to React: learning and adapting to change lesson 1
- Semana da Tecnologia de 2018 na FATEC Sorocaba (08/10/2018): workshop de 2 dias
Juliana Negreiros
October 08, 2018
Tweet
Share
More Decks by Juliana Negreiros
See All by Juliana Negreiros
Um guia para começar no mundo Front End
juunegreiros
0
340
Desmistificando a área de TI
juunegreiros
0
70
Como otimizar seu site com lighthouse e core web vitals
juunegreiros
0
430
Introdução ao Git
juunegreiros
0
54
Webpacker e a Jornada do Heroi
juunegreiros
0
23
Como modularizar seu front-end sem depender de um framework
juunegreiros
0
87
Sopa de Letrinhas CSS | Alphabet soup CSS
juunegreiros
1
77
Pensando logicamente: introdução à lógica de programação | Thinking logically: introduction to programming logic
juunegreiros
0
61
Carreiras em TI
juunegreiros
0
54
Other Decks in Technology
See All in Technology
なぜAWSを活かしきれないのか?技術と組織への処方箋
nrinetcom
PRO
4
730
「れきちず」のこれまでとこれから - 誰にでもわかりやすい歴史地図を目指して / FOSS4G 2025 Japan
hjmkth
1
280
小学4年生夏休みの自由研究「ぼくと Copilot エージェント」
taichinakamura
0
640
スタートアップにおけるこれからの「データ整備」
shomaekawa
2
380
プロポーザルのコツ ~ Kaigi on Rails 2025 初参加で3名の登壇を実現 ~
naro143
1
210
後進育成のしくじり〜任せるスキルとリーダーシップの両立〜
matsu0228
7
3.2k
職種別ミートアップで社内から盛り上げる アウトプット文化の醸成と関係強化/ #DevRelKaigi
nishiuma
2
160
ガバメントクラウドの概要と自治体事例(名古屋市)
techniczna
2
230
OCI Network Firewall 概要
oracle4engineer
PRO
2
7.9k
20251007: What happens when multi-agent systems become larger? (CyberAgent, Inc)
ornew
1
220
Adapty_東京AI祭ハッカソン2025ピッチスライド
shinoyamada
0
270
ComposeではないコードをCompose化する case ビズリーチ / DroidKaigi 2025 koyasai
visional_engineering_and_design
0
100
Featured
See All Featured
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
GraphQLとの向き合い方2022年版
quramy
49
14k
Building Applications with DynamoDB
mza
96
6.7k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.7k
Why Our Code Smells
bkeepers
PRO
339
57k
Done Done
chrislema
185
16k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.1k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Producing Creativity
orderedlist
PRO
347
40k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
9
870
Building Adaptive Systems
keathley
43
2.8k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
Transcript
Do Javascript ao React Aprendendo e se adaptando à mudanças
Juliana Negreiros
Guilherme Caçador Monteiro
Objetivos e porquês
Antes de começar
bit.ly/movies-react-worksho p
developers.themoviedb.org/3
Sobre APIs
codesanbox.io
Iniciando uma linda amizade com o debugger
None
Precisamos falar sobre Javascript
ECMAscript 6 ou ECMAscript 2015
Conversão automática de tipos
1 == '1' 3 > 2 > 1
1 == '1' 3 > 2 > 1
Declaração de variáveis
const let var
const a = {name: 'Ju'} const b = a const
c = {name: 'Ju'}
a == b a == c a.name = 'Gui' a
== b a = 'name'
let d = 'ju' d = 'gui' let d =
'outro nome'
Atributos
const dados = {} dados.nome = 'ju' dados['filme preferido'] =
'Braveheart' dados[1] = 2
Assíncrono
Promises
None
None
Programação Funcional
Declarativo x Imperativo
const nomes = ['ju', 'gui']
for(let i = 0; i < nomes.length; i++) { console.log(nomes[i]);
}
nomes.forEach(nome => console.log(nome))
High Order Functions
function multiplica(n1){ return n2 => n1 * n2 } const
dobro = multiplica(2) console.log(dobro(8))
Filter, map, reduce e forEach
forEach(element, index) const numeros = [1, 2, 3, 4, 5,
6] const print = numeros => numeros.forEach(numero => console.log(numero)) print(numeros)
map(element, index, array) const numeros = [1, 2, 3, 4,
5, 6] const dobros = numeros.map(numero => numero * 2)
filter(element, index, array) const numeros = [1, 2, 3, 4,
5, 6] const pares = numeros.filter(numero => numero % 2 === 0)
reduce(prevVal, elemento, index, array, initVal) const numeros = [1, 2,
3, 4, 5, 6] const total = numeros.reduce((prev, numero) => prev + numero, 0)
DOM
41b0dacac11ce51d0d8085 035a3a5e73bi
https://codesandbox.io /s/lpq882ljkl
None
None