Skip to main content

3 posts tagged with "hooks"

View all tags

ReactJS Hooks - use Experimental Hook

· 10 min read
Bruno Carneiro
Fundador da @TautornTech

ReactJS Hooks use [Experimental]

Hello everyone, continuing the series of articles about Hooks, in this article I'll talk about use. A Hook that is in experimental phase and should be available in React soon.

This hook can greatly help our day-to-day because currently the amount of code written to resolve a promise is quite large. But not only that.

And to demonstrate how the hook works by comparing it with the current state, I created a simple project showing some cards from the Hearthstone game.

Final project

ReactJS Hooks - useEffect

· 10 min read
Bruno Carneiro
Fundador da @TautornTech

ReactJS Hooks

Hello everyone, continuing the series of articles about Hooks, in this article I'll talk about useEffect.

tip

If you want to learn a bit more about Hooks, you can read this content here:

React Hooks: useState

React Hook: use

The useEffect (effect hook) is a Hook for listening to changes made in a component. With it we can interact with some React lifecycle functions, just as it was done using classes.

ReactJS Hooks - useState

· 6 min read
Bruno Carneiro
Fundador da @TautornTech

ReactJS Hooks

Hello everyone, today I'm going to talk a little about HOOKs, how they work, and when to use them.

Reference: Pudge Dota 2


tip

 Also learn how the useEffect and use hooks work.


The Hooks feature was added to React in version 16.8, which created the possibility of using the application state and other React features without needing to create a class scope. A brief example of a component with class scope: