WebReflection / neverland

React like Hooks for lighterhtml
https://medium.com/@WebReflection/neverland-the-hyperhtmls-hook-a0c3e11324bb
ISC License
244 stars 7 forks source link

useContext usage #19

Closed jgoux closed 5 years ago

jgoux commented 5 years ago

Hello,

I'm trying neverland and I can't make createContext / useContext works properly.

Here is a codesandbox of what I'm trying to do : https://codesandbox.io/s/mqwr59qw8p

I want to define a theme through a context, and consume it in a component deeper in the tree.

Thanks for your help!

felipeegasneris commented 5 years ago

+1 for this please!!!!

WebReflection commented 5 years ago

I've updated the current project status https://github.com/WebReflection/neverland/blob/master/README.md#warning

all bugs are likely related to its dependencies anyway, so I am going to close issues in here.

Apologies for any inconvenience.