Which one is advisable in react js

Class component

function component

24 votes · Ended on 27:08:2020 08:47 AM

Start a personal dev blog on your domain for free and grow your readership.

3.4K+ developers have started their personal blogs on Hashnode in the last one month.

Write in Markdown · Publish articles on custom domain · Gain readership on day zero · Automatic GitHub backup and more

Comments (1)

Thais Ramalho's photo

"Companies on the cutting edge of React development like Facebook, Netflix, and Airbnb all readily use functional components. It seems pretty clear the upsides outweigh the negatives."

When should you NOT use functional components? When you have no other option.

programmingwithmosh.com/react/react-functio..

I have read from REACTs official docs that functional components, when possible, are preferable as standard, can't find the exact page now, but you can see the site above explaining it very well.