L
L
Lorem Ipsum2020-06-17 15:49:12
React
Lorem Ipsum, 2020-06-17 15:49:12

What approach to use in React?

Hello! What approach to use when developing with React? Class Components or Function Components?
I am somehow closer to class components, but due to the introduction of hooks, I see that many use a functional approach. Need advice - is it possible to develop on class components or do you need to learn / apply functions and hooks?
PS I don't really want to do a mix of classes and functions.
PSS If the question is stupid - I'm sorry))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
approximate solution, 2020-06-17
@GeorgeGeorge

React itself goes in the direction of functional development. And you can develop in any way you like, just stick to the uniform style of the code, and do not interfere with the mess. But for the sake of education, I would advise you to still pay attention to hooks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question