Raja Muhammad Asher
Raja Muhammad Asher

Raja Muhammad Asher

What are the differences between functional and
class components?

Photo by Lautaro Andreani on Unsplash

What are the differences between functional and class components?

Raja Muhammad Asher's photo
Raja Muhammad Asher
·Aug 24, 2022·

1 min read

Functional components are JavaScript functions. Before the introduction of hooks, state and lifecycle methods were available to class components only. Now functional components can maintain state with useState hook.

 
Share this