SolidJSS
SolidJSโ€ข3y agoโ€ข
19 replies
FutureLights

Context In Typescript

I'm trying to create a context in Typescript following this example, but copying and pasting the code results in an error when I try and use the ThemeContext.Provider in the ThemeProvider Component.

https://www.solidjs.com/examples/context

Cannot find namespace 'ThemeContext'.

Any suggestions?
Solid is a purely reactive library. It was designed from the ground up with a reactive core. It's influenced by reactive principles developed by previous libraries.
SolidJS
Was this page helpful?