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
69
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
22
Como modularizar seu front-end sem depender de um framework
juunegreiros
0
87
Sopa de Letrinhas CSS | Alphabet soup CSS
juunegreiros
1
75
Pensando logicamente: introdução à lógica de programação | Thinking logically: introduction to programming logic
juunegreiros
0
60
Carreiras em TI
juunegreiros
0
53
Other Decks in Technology
See All in Technology
fukabori.fm 出張版: 売上高617億円と高稼働率を陰で支えた社内ツール開発のあれこれ話 / 20250704 Yoshimasa Iwase & Tomoo Morikawa
shift_evolve
PRO
2
7.6k
Geminiとv0による高速プロトタイピング
shinya337
1
270
AWS認定を取る中で感じたこと
siromi
1
190
タイミーのデータモデリング事例と今後のチャレンジ
ttccddtoki
6
2.4k
生成AI開発案件におけるClineの業務活用事例とTips
shinya337
0
250
OPENLOGI Company Profile
hr01
0
67k
Sansanのデータプロダクトマネジメントのアプローチ
sansantech
PRO
0
150
SmartNewsにおける 1000+ノード規模 K8s基盤 でのコスト最適化 – Spot・Gravitonの大規模導入への挑戦
vsanna2
0
130
KubeCon + CloudNativeCon Japan 2025 Recap Opening & Choose Your Own Adventureシリーズまとめ
mmmatsuda
0
270
How Do I Contact HP Printer Support? [Full 2025 Guide for U.S. Businesses]
harrry1211
0
120
MobileActOsaka_250704.pdf
akaitadaaki
0
120
20250707-AI活用の個人差を埋めるチームづくり
shnjtk
4
3.8k
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Raft: Consensus for Rubyists
vanstee
140
7k
Into the Great Unknown - MozCon
thekraken
40
1.9k
BBQ
matthewcrist
89
9.7k
Thoughts on Productivity
jonyablonski
69
4.7k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.8k
A designer walks into a library…
pauljervisheath
207
24k
Bootstrapping a Software Product
garrettdimon
PRO
307
110k
Balancing Empowerment & Direction
lara
1
430
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
[RailsConf 2023] Rails as a piece of cake
palkan
55
5.7k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
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