honojs-middleware/packages/react-compat
Jonathan Haines c880649458
refactor: enable isolated declarations (#1209)
2025-06-09 19:00:20 +09:00
..
src
CHANGELOG.md
README.md chore: add coverage badges (#1023) 2025-03-19 17:53:11 +09:00
package.json build: typescript project references (#1077) 2025-04-02 18:28:02 +09:00
tsconfig.build.json refactor: enable isolated declarations (#1209) 2025-06-09 19:00:20 +09:00
tsconfig.json build: typescript project references (#1077) 2025-04-02 18:28:02 +09:00

README.md

Alias of hono/jsx for replacement of React

codecov

This package is used to install the React compatibility API provided by Hono. This package allows you to replace the "react" and "react-dom" entities with "@hono/react-compat".

Usage

npm install react@npm:@hono/react-compat react-dom@npm:@hono/react-compat

After installing in this way, "@hono/react-compat" will be loaded when "react" is specified in the jsxImportSource setting or in the import statement. See the npm docs for more information about aliased installs.

Author

Taku Amano https://github.com/usualoma

License

MIT