Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 466 Bytes

File metadata and controls

5 lines (3 loc) · 466 Bytes

4. What are React components?

React applications are built by composing reusable components. A React component is a self-contained, independent piece of the user interface. Components can be simple, like a button or a form input, or complex, like an entire page.

Components can be either class-based or functional. Class-based components have a render method and can maintain state, while functional components are stateless and use hooks for managing state.