JReact
JReact is a modern declarative UI framework inspired by React that uses the full power of jQuery under the hood.
import Jreact render from 'jreact'; import App from './components/App'; ;
Usage
Set your jsx pragma to Jreact in babelrc
"presets": "@babel/preset-env" "@babel/preset-react" "pragma": "Jreact" "throwIfNamespace": false
Then do not use fragments and make sure to escape your html.
You can also use useState
and useEffect
hooks.
import Jreact useState useEffect from 'jreact'; const Clock = children const time setTime = return <div> time: time: time </div>