DEV Community

Cover image for React - Context API

React - Context API

Gustavo Garsaky on January 22, 2019

Hasta antes de la versión 16, solo había una forma -nativa- de compartir propiedades entre componentes y era por medio de Prop drilling o, dicho en...
Collapse
 
antonio_pangall profile image
Antonio Pangallo

Hi Gustavo,

my Spanish is not good :) sorry for that.

I would like to get your opinion on github.com/iusehooks/redhooks which uses the Context API and the Hooks.

Thanks!

Collapse
 
gugadev profile image
Gustavo Garsaky

Hi Antonio, redhooks looks pretty good. It's very similar to Redux in fact. I'll try it and make some tutorial about it ;)

Thanks for the link!

Collapse
 
antonio_pangall profile image
Antonio Pangallo

it depends only on react hooks and context api. You do not need react-redux to use it, middleware are supported and it is really a tiny library. Thanks for your feedback

Collapse
 
dontacho profile image
dontacho

Hola Gus, muy buena explicación. Justo estoy presentando complejidad con props y esto parece la solución. Saludos y gracias.

Collapse
 
gugadev profile image
Gustavo Garsaky

Hi there! Gracias! Esto lo puedes aprovechar mejor con el hook useContext! Ya cocinaré algo al respecto. 🤙