fix: component context not being created

This commit is contained in:
Mark Lawlor
2022-05-11 15:45:40 +10:00
parent ebbbe516f0
commit 8709a9d825

View File

@@ -74,7 +74,7 @@ export function styled<P>(
children,
} as unknown as P);
return !classes.includes("container")
return !classes.includes("component")
? element
: createElement<PropsWithChildren<{ value: ComponentContext }>>(
ComponentContext.Provider,