Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Introduction à ReactJS
Search
fdecampredon
September 23, 2015
88
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Introduction à ReactJS
Presentation du talk d'introduction à ReactJS pour #MarseilleJS 4
fdecampredon
September 23, 2015
Transcript
14 slides
Introduction à ReactJS @fdecampredon MarseilleJS - 23/09/2015
React c’est … Une library de virtual dom Le «
V » de « MVC » Une library inspirée du Functional Programming Un framework horrible ou on mixe HTML et JS Des immutable data structures
React c’est … Un framework orienté « Components » Un
contrat pour définir des composants Composition au centre du développement
Les Composants Props: Composant input render: input => html «
monte » le composant sur la page
Le JSX • Optionnel • Syntactic sugar • Equivalent «
function call » : • Tout de même plus lisible • Le js c’est quand même plus puissant que des templates ….
Gestion des Events • « Behind the scene » •
Event delegation • SyntheticEvent
Composants « StateFull » État initial Mise à Jour Utilisation
de l’état
Composition App SearchBar CategoryProductRow ProductRow ProductTable ProductTable
Virtual DOM • On crée une « lightweight » représentation
de L’UI • Diff avec l’ancienne • Calcule le minimum d’opérations à appliquer au DOM On Rerender tout !
React vs … Est-ce que c’est vraiment Découplé ? Pas
tellement …. Est-ce que c’est Simple ? Qu’est ce qui arrive quand je click … ? Separation of concern
React vs …. • Simple et coherent ! • Fonctionnement
simple et compréhensible • Full power of Javascript Simple != Familier
Pourquoi React ? • Simplicité • Composition <3 • «
Momentum » • Productivité • etc …
Ce n’est que le début ! • MVC • Mutation
• CSS • REST => Flux => Immutability => Inline Styles => GraphQL
François de Campredon Fadio IT http://www.fadio.it @fdecampredon https://github.com/fdecampredon/ Questions ?
More Decks by fdecampredon
See All by fdecampredon
Introduction à GraphQL
fdecampredon
0
1.4k
Reactive Programming et React
fdecampredon
3
220
Going Reactive with React
fdecampredon
1
590
Featured
See All Featured
A Modern Web Designer's Workflow
chriscoyier
699
190k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
250
1.3M
[Rails World 2026] Durable orchestration on Rails: from continuation to workflow
palkan
4
1.3k
The Spectacular Lies of Maps
axbom
PRO
1
1.1k
The untapped power of vector embeddings
frankvandijk
2
2k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.8k
Un-Boring Meetings
codingconduct
0
510
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
Amusing Abliteration
ianozsvald
1
400
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
640
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
560
For a Future-Friendly Web
brad_frost
184
11k