honojs-middleware/packages/react-compat
Taku Amano 2b981105db
feat: add @hono/react-compat package (#563)
* Add @hono/react-compat package

The creation of this package was proposed by Gaetan Puleo.

Co-authored-by: Gaetan Puleo <pro@gaetanpuleo.com>

* remove the changelog file and fix the version in `package.json`
these will be modified by Changesets

* correct `exports` paths in `package.json` and add `hono` as dev dependency

* export as `default`

* add build command to the `package.json` at the top

* add changeset. we release it as `patch` first.

---------

Co-authored-by: Gaetan Puleo <pro@gaetanpuleo.com>
Co-authored-by: Yusuke Wada <yusuke@kamawada.com>
2024-06-12 22:38:58 +09:00
..
src feat: add @hono/react-compat package (#563) 2024-06-12 22:38:58 +09:00
README.md feat: add @hono/react-compat package (#563) 2024-06-12 22:38:58 +09:00
package.json feat: add @hono/react-compat package (#563) 2024-06-12 22:38:58 +09:00
tsconfig.json feat: add @hono/react-compat package (#563) 2024-06-12 22:38:58 +09:00

README.md

Alias of hono/jsx for replacement of React

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