DEV Community

Discussion on: Components in react🔥

Collapse
jsphwllng profile image
joseph

When you'd you use function components and when would you use class components?

Collapse
dingtian profile image
DingTian

It depends on you. but if you want to have more time to enjoy with coding , maybe React Hook will be better . lol .