Create Stateless functional component for ReactJS

This is another way to create React components. Stateless functional component is JS pure functions which has no state.

This is the product component which I have created using createReactClass method

Now we will see how we can convert above code to stateless function component
So this is the syntax for stateless function is JS

So this is the stateless functional component code of the above code