What are stateless components?

  • Components that are only used for layout
  • Components that don't have any children
  • Components that don't have any props
  • Components that don't use any state
Stateless components, also known as functional components, are components that don't use any state. Stateless components are simpler and easier to test than stateful components, but they can't be used for more complex UI components that need to maintain state.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *