hono
hono copied to clipboard
feat(jsx): more react staff
Once #2196 and this PR are merged, I believe the following example will work with 'hono/jsx/dom' (without react).
https://tutorial.jotai.org/examples/textLenght
New staff members
useReducer, useDebugValue, createElement
useDebugValue is just a dummy and useless, but it was added to avoid import errors.
export default
Although rarely used in this way today, the following library for React, which is written as follows, can be used as is without modification.
import React from 'react' // reaplced with 'hono/jsx/dom'
const App = () => {
const [value, updateValue] = React.useState(0)
// ...
}
Author should do the followings, if applicable
- [x] Add tests
- [x] Run tests
- [x]
yarn denoifyto generate files for Deno