1: Preparation
Parent component (APP) Child component (Header)
Rewrite APP content in index.js
2: Description of data transfer
3: Back to the child component (Header.js)
4: If you debug and see props go back to the transmission of new data in index.js ps: useage is not userage, one less r
5: If you check back to the content of the red box in Header.js and re-run it, you can view the result in the browser
6: The results are as follows