This is a demo of how to get values out of text boxes using React - and put those values somewhere else on the page. We will not be using getElementById.
- clone it
yarn install
yarn run
- npm vs yarn? They do the same thing. Pick one per project. Which one you pick is an 'architect' decision.
- React concepts:
- components
- props
- state
- Binding! One way vs two way binding
- components
- plan:
- display a piece of state as the contents of the h1
- when the textbox changes, change that piece of state
This project was bootstrapped with Create React App.