Leonardo Fetrilo
Leonardo Fetrilo

Reputation: 45

Hooks vs Class components

I don't know, do i need to rewrite all my class components if I have plans to update react version in the project?

My project have large codebase and rewrite all will be problematic.

Upvotes: 1

Views: 65

Answers (2)

Amit Kumar Trivedi
Amit Kumar Trivedi

Reputation: 543

Absolutely Not require. New version is backward compatible.

Upvotes: 1

PasVV
PasVV

Reputation: 593

Answer on your question have in React Docs on F.A.Q. section. :)

Upvotes: 1

Related Questions