Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce React Renderer Middleware #309

Merged
merged 6 commits into from
Dec 16, 2023
Merged

Conversation

yusukebe
Copy link
Member

@yusukebe yusukebe commented Dec 13, 2023

This PR introduces the 'React Renderer Middleware'.

It is similar to the JSX Renderer Middleware in Hono's core, but it uses React. This might be used in Sonik or other meta-frameworks built on Hono. React supports not only server-side but also client-side rendering. Therefore, you can use it in a different way compared to Hono's JSX. Additionally, you can use a lot libraries available in React's ecosystem.

Copy link

changeset-bot bot commented Dec 13, 2023

🦋 Changeset detected

Latest commit: 51b37e7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hono/react-renderer Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@yusukebe yusukebe marked this pull request as ready for review December 13, 2023 18:33
@yusukebe
Copy link
Member Author

Hi @usualoma

Could you review this one?

@usualoma
Copy link
Member

@yusukebe Oh, Great job!

The useRequestContext is also implemented, which should make it easy to migrate to and from hono's jsxRenderer 👍

I made one comment about devDependencies, please confirm.

@yusukebe yusukebe merged commit 9348fa2 into main Dec 16, 2023
@yusukebe yusukebe deleted the feat/react-renderer branch December 16, 2023 01:28
@github-actions github-actions bot mentioned this pull request Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants