Custom Hooks vs Class vs Other... What is your choice?

crtdaniele

Daniele Carta

Posted on August 25, 2020

Custom Hooks vs Class vs Other... What is your choice?

Hi Developer!

Today I want to ask you what is your prefer method to develop a business logic.

In last year, with ReactJS 16.8, with the functional components + hooks, develop custom hooks with the business logic is very simple and practice.

We need to have and to use Classes in a project? Or now we can use only the custom hooks?

And with Typescript, we have the possibility to use "Namespace" a collection of class.

Give me your opinion, and your best methodology!

Follow me on Github
Follow me on LinkedIn

💖 💪 🙅 🚩
crtdaniele
Daniele Carta

Posted on August 25, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related