A cleaner and better way to render components in React.
Have you ever imagine how can conditionally render react components and form fields in a cleaner and better way?
Check out Form Fields React
It gives you the ability to move the manipulation or computation that needs to be done before rendering multiple components into a javascript function.
Form Fields React only takes a single prop called fields which is an array of components to be rendered.
Each item in the fields prop could either be a component or container which can also render multiple components.
Here is a link to a working example