Which type of component in React allows you to use the render method directly?

  • Class Component
  • Functional Component
  • Pure Component
  • Stateless Component
In React, a Class Component allows you to use the render method directly. Class Components have a render method that returns the JSX to be rendered on the screen. Functional Components, on the other hand, are stateless and don't have a render method in the same way Class Components do.
Add your answer
Loading...

Leave a comment

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