Skip to content

More React compatibiliy #2508

@yusukebe

Description

@yusukebe

What is the feature you are proposing?

I started thinking wishing hono/jsx/dom would be more compatible with React.

Using a bundler such as Vite to create an alias with hono/jsx/dom in react will work with some React libraries.

resolve: {
  alias: {
    react: 'hono/jsx/dom'
  }
}

For example, React DnD works: https://github.com/usualoma/hono-jsx-dnd

However, when I tried other UI libraries, they all failed to work.

The errors will occur if the following are not exported:

  • createRef
  • Fragment
  • forwardRef
  • Children
  • etc

Also, even if there is an API, the behavior is different, resulting in an error.

However, it would be great if these libraries were available so that more people could use hono/jsx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions