React - Stateful Components and Stateless Components
Stateful Components and Stateless Components
Stateless Component
Definition
- A JavaScript function that takes props as an argument and returns a React element - It has no internal state and does not need to remember or modify values
Advantages
- Simplicity of code management
Example Code
Found an error?
Open an issue on GitHub
Corrections will be incorporated with attribution.
Found a typo?
Fork, modify and open a PR.