Components

React Components

Whilst you can define react elements within a pair of <script> nodes in an HTML document, it is recommended to use components. React components allow you to split the UI that you write into modular, reusable pieces of code.
The most simplest example of a component can be a JavaScript function that accepts a properties …