React stateless functional components

  • Stateless functional components introduced in React 0.14 a way to write React Component in a simple manner using Plain Javascript functions is great.
  • The props you pass to your component is automatically injected into the props of your component main function.
  • They are very useful if you are using a lot of components which are stateless which is quite common if you are using redux kind of library to manage your application state.
  • // I used them to make Font Awesome more easy to use with react function Icon ( props ) { return < i className = { "fa fa-" + props .
  • Have a look at these tiny little things.

Stateless functional components introduced in React 0.14 a way to write React Component in a simple manner using Plain Javascript functions is great.

@manojnegiwd: Stateless functional components love using them #reactjs #javascript

Stateless functional components introduced in React 0.14 a way to write React Component in a simple manner using Plain Javascript functions is great.

They are Tiny and useful.

Have a look at these tiny little things.

Now use it like

Isn’t they are cool ?

The props you pass to your component is automatically injected into the props of your component main function.

They are very useful if you are using a lot of components which are stateless which is quite common if you are using redux kind of library to manage your application state.

Another example on stateless functional components

They are Tiny and useful. Go Go use them.

React stateless functional components