@lyo/react
v16.6.1
Published
Browser-compatible version of react
Downloads
2
Readme
@lyo/react
A browser-compatible version of react built automatically with Lyo.
Usage
In a browser
<script src="https://cdn.jsdelivr.net/npm/@lyo/react"></script>
<script>
react.createRef();
react.Component(foo, bar, baz);
react.PureComponent(foo, bar, baz);
react.createContext(foo, bar);
react.forwardRef(foo);
react.lazy(foo);
react.memo(foo, bar);
react.createElement(foo, bar, baz);
react.cloneElement(foo, bar, baz);
react.createFactory(foo);
react.isValidElement(foo);
</script>
In Node.js
# Install
npm i @lyo/react
const react = require('@lyo/react')
react.createRef();
react.Component(foo, bar, baz);
react.PureComponent(foo, bar, baz);
react.createContext(foo, bar);
react.forwardRef(foo);
react.lazy(foo);
react.memo(foo, bar);
react.createElement(foo, bar, baz);
react.cloneElement(foo, bar, baz);
react.createFactory(foo);
react.isValidElement(foo);
Disclaimer
This automated Lyo build may have not been properly tested, and is not guaranteed to work perfectly.
Use at your own risk