Joel Watson

Joel.Watson92@gmail.com | LinkedIn: /in/joel3rbear | Twitter: @Joel3rBear


Project maintained by JoelMWatson Hosted on GitHub Pages — Theme by mattgraham

Home » Reading Notes » Props and State


Class 23 Reading: React Testing and Deployment

Why might you want to create a FormInput component?

You might want to create a FormInput component because you know you are probably going to have a lot of input fields in a form and you can save yourself the time of repeating the simlar code.

Can a parent component access the state of a child component?

Parent components can access the state of a child component using reference and passing it down into the child component as a propert.

What can be passed along in a prop variable?

Any data that you want to be able to use in the component can be passed in inside the props variable.