hono icon indicating copy to clipboard operation
hono copied to clipboard

feat(jsx): more react staff

Open usualoma opened this issue 1 year ago • 0 comments

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 denoify to generate files for Deno

usualoma avatar Feb 12 '24 01:02 usualoma