professional-programming/training/front-end/02-react.md
2020-07-27 12:43:02 +02:00

1.5 KiB

Table of Contents

An introduction to React

Before getting into React...

Manipulating the DOM

The inspiration for React

The shadow DOM

Learning React

Follow the tutorial: https://reactjs.org/docs/hello-world.html

Self-assessment

Basics:

  • What is the difference between elements and components?
  • What is JSX?
  • Is it ok to modify props?
  • How should you modify state?
  • What does "the data flows down" mean?
  • How do you pass arguments to event handlers?
  • How do you put conditionals in JSX?
  • How do you put inline if-else in JSX?
  • How do you prevent a component from rendering?
  • What is the key prop?
  • What are controlled and uncontrolled components?
  • What does it mean to "lift state up"?
  • Should you use composition or inheritance with React?

Advanced: