Get started with redom CDN
MIT licensed
Redom: Bash tool for repeating commands, modifying input between runs.
Tags:- redom
- tiny
- ui
- library
- framework
- javascript
- frontend
- client-side
- dom
Stable version
Copied!
How to start using redom CDN
// Include Redom library from the CDN
const { mount } = require('redom/preact');
// Create a component function
function Counter({ initialCount = 0 }) {
let [count, setCount] = React.useState(initialCount);
function increment() {
setCount(count + 1);
}
return (
<button onClick={increment}>Count: {count}</button>
);
}
// Mount the component to an element with id 'root'
mount(document.getElementById('root'), <Counter />);
Copied!
Copied!
Copied!
Copied!
All versions
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.1.0
0.1.1
0.1.2
0.1.3
0.1.4
0.2.0
0.2.1
0.3.0
0.3.1
0.3.2
0.3.3
0.3.4
0.3.5
0.3.6
0.4.0
0.4.1
0.4.2
0.4.3
0.4.4
0.4.5
0.4.6
1.0.0
1.0.1
1.1.0
1.10.0
1.10.1
1.11.0
1.11.1
1.12.0
1.12.1
1.13.0
1.13.1
1.13.2
1.13.3
1.14.0
1.14.1
1.14.2
1.15.1
1.16.0
1.17.0
1.2.0
1.2.1
1.3.0
1.3.1
1.3.2
1.3.3
1.4.0
1.5.0
1.6.0
1.6.1
1.6.2
1.6.3
1.6.4
1.7.0
1.8.0
1.9.0
2.0.0
2.0.0-0
2.0.1
2.1.0
2.2.0
2.2.1
2.2.2
2.2.3
2.3.0
2.4.0
2.4.1
2.4.2
2.4.3
2.5.0-0
2.5.1-0
2.5.2-0
2.5.3-0
2.6.0
2.6.1
2.6.2
2.6.3
2.6.4
2.7.0
2.7.1
2.8.0
2.8.1
3.0.0
3.0.1
3.0.2
3.1.0
3.1.1
3.10.0
3.10.1
3.10.2
3.10.3
3.10.4
3.10.5
3.10.6
3.10.8
3.11.1
3.12.0
3.12.1
3.12.3
3.12.4
3.12.5
3.12.6
3.12.7
3.13.0-0
3.13.1
3.13.1-0
3.13.2
3.14.0
3.14.1
3.14.2
3.14.3
3.15.0
3.16.0
3.16.1
3.17.0
3.17.1
3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