- A React component is a single object that not only outputs HTML like a traditional template would, but also includes all the code needed to control that output.
- In React, mutable state is typically kept in the state property of components, and only updated with , They are referred to has
Let’s quickly go through the below code.
- The render method consist of a form element that has an input field and also a submit button below, The input field has the onChange function that takes in , this method takes in as a parameter which happens to be the DOM event handler, and gets the result from , is one of the component API methods which is use to update state value, with this as a user types into the input field, the value will be updated in state.
Dive into React with this Quick Start Guide. Differences between Props and State
Continue reading “Beginners Guide into ReactJS”