#reactjs community: does anyone know if I can consume context from within a custom npm package? The React app that is using the package can't seem to pass the context down.
-
Prikaži ovu nit
So apparently the answer to this (I'm using styled components) is to make sure your dependency graph includes one version o f styled-components so that there is one ThemeProvider. i.e. use peerDeps in the package
09:03 - 23. sij 2020.
0 replies
0 proslijeđenih tweetova
1 korisnik označava da mu se sviđa
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.