Here is an example of the search bar we will be making. We will be going through…
In this blog, I will be explaining how a toggle works in React and how to create a toggle button to display plain text.
Two types of React components
Sometimes, a component is dynamic and there are two ways props and state . A component’s state is not passed in from…
props
state
Render( ) method can also return another kind of JSX component instances.
A component is a small, reusable chuck of code that is responsible for one job (often is to render some HTML)
This .map( ) is an array method to create a list of JSX elements..
You cannot insert an IF statement into JSX like this
More powerful tricks and some common errors to avoid.