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