Upgrade to Pro — share decks privately, control downloads, hide ads and more …

ReactJS_Workshop.pdf

 ReactJS_Workshop.pdf

Juan Roa

April 30, 2021
Tweet

More Decks by Juan Roa

Other Decks in Programming

Transcript

  1. Who am I? • Frontend developer at Pulpo WMS •

    Ruby on Rails developer • Blockchain & Bitcoin enthusiast • CO-Organizer at Cali Ruby • CO-Organizer and Coach at Rails Girls Cali • ReactJS Coach at DevHack • Caleño, Biker.
  2. What are we going to learn ? • ES6 features

    • What React is. • What are components (stateless, stateful). • Props and state • Best practices / functional programming in React • Immutability / avoid side effects • Create simple components with state
  3. Ecmascript 2015 features • Arrow functions • Classes • Template

    strings • Destructuring • Default / spread • Let / Const • Imports
  4. Immutability / A more functional approach • Object.assign • Spread

    operator • Prototype.map • Concat • Don’t modify data structures, return always a new copy or value!
  5. Props and State Props: • External data • Can’t change

    it State: • Internal data • Can change it • Private for component