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

Front-End Web Development in React

Front-End Web Development in React

Avatar for Aayush Kapoor

Aayush Kapoor

July 01, 2018
Tweet

Transcript

  1. Q: “How do you eat an Elephant?” A: “One bite

    at a time”. 3 AKA: When things seem daunting, break them down into smaller chunks. Eventually, those chunks will become understandable.
  2. 6

  3. 7

  4. 8

  5. 9

  6. Props 1. Data that is passed into a component. 2.

    They are READ-ONLY in nature. React Props vs State State 1. Data that is managed by the component. 2. It is CHANGEABLE in nature. 13
  7. React One Way Data Flow 16 Props Immutable & Passed-on

    Data State Mutable & Private Data
  8. React with JSX 18 ➔ Feels like HTML inside JS

    ➔ Compiles down to JavaScript ➔ It is Fast due to Optimisations
  9. React Project Structure 22 ➔ Great-grandparent ◆ Grandparent • Parent

    ◦ Child ◦ Child ◆ Grandparent • Parent ◦ Child ◦ Child