You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to create a component called HasIslandWithReactRenderer so that island will work even when using react-renderer.
Currently there is only a HasIsland component that supports the hono/jsx context, so if I use reactRenderer I get an error: RequestContext is not provided.
For your information, I made it in my repository and it worked, how about you?
Reference implementation:
import{useRequestContext}from"@hono/react-renderer";constHasIslandWithReactRenderer: FC<PropsWithChildren>=({ children })=>{constc=useRequestContext();return<>{c.get(IMPORTING_ISLANDS_ID) ? children : <></>}</>;};
The text was updated successfully, but these errors were encountered:
Thank you for your comment! @yusukebe
I understand! Someone wanted to use shadcn/ui in honox, but shadcn/ui depends on react, so I was touching things up to make the development experience there better!
What is the feature you are proposing?
I would like to create a component called
HasIslandWithReactRenderer
so that island will work even when using react-renderer.Currently there is only a HasIsland component that supports the hono/jsx context, so if I use reactRenderer I get an
error: RequestContext is not provided.
For your information, I made it in my repository and it worked, how about you?
Reference implementation:
The text was updated successfully, but these errors were encountered: