What are stateful components?
- Components that are only used for layout
- Components that don't use any state
- Components that maintain state
- Components that only have props
Stateful components, also known as class components, are components that maintain state. Stateful components are useful for creating more complex UI components that need to maintain state, but they are more difficult to test than stateless components.
Loading...