Using React Hooks vs. Class Components

preview_player
Показать описание
I'm planning on using both React Hooks and Class Components.

Links from video:

----

----

----

----
Follow Me Online Here:

#benawad

----
#benawad
Рекомендации по теме
Комментарии
Автор

New course with React hooks and Firebase?

Don't think you need the redux stuff anymore.

frankspin
Автор

I love the insights sir. Thanks for sharing this.

attemptedcoding
Автор

Yeah I still plan on using Classes. Really hope they don’t kill classes.

MattDuarte
Автор

Functional components with hooks almost always better

Football
Автор

Over the past year I've switched entirely over to stateless functions, but now I'm writing hacky context wrappers to try and control re-renders. Do you think there any advantages to going back to classes?

targetcreature
Автор

Hey Ben! Just thought I'd let you know that create-react-app just updated to 2.1.0 which adds TypeScript support!

__andyp
Автор

I still don't understand what hooks are and what are the advantages to use it?

adamkenton
Автор

They need to figure out how to keep functions on the prototype (for best performance) and retain "this" (for proper binding) while keeping the boilerplate to minimum (for dev experience). From there on, React is going to rock. For now, class sugar is the closest we can get to that.

alexnezhynsky
Автор

Im a newbie but hooks and functiona components seems like a step backwards in the sense it looks much close to vanilla JS.

Garycarlyle
Автор

Please show a quick demo using hooks with context API.

Also please do a deployment using GraphQL +AWS Lambda + Apollo Engine + AWS Fargate. Jblaxley's github has some setup code/tutorial to get it all up and running using Up.


Here is a video on the stack by Apollo team:

jokeefe
Автор

Class components aren't going anywhere..

Andyandrwew