State

The name stateless tells us clearly that the stateless functional components do not have any internal state, and the fact that this does not exist enforces it. That makes them extremely powerful and easy to use at the same time.

The stateless functional components only receive props (and context), and they return the elements. This should remind us of the principles of functional programming that we saw in Chapter 2, Clean Up Your Code.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset