1 | ## Installation
|
2 |
|
3 | Install with npm or Yarn.
|
4 |
|
5 | ```
|
6 | npm i radi
|
7 | ```
|
8 |
|
9 | Then with a module bundler like [Rollup](https://rollupjs.org/) or [Webpack](https://webpack.js.org/), use as you would anything else.
|
10 |
|
11 | ```js
|
12 | import { r, Component, mount } from "radi"
|
13 | ```
|
14 |
|
15 | If you don't want to set up a build environment, you can download Radi from a CDN like [unpkg.com](https://unpkg.com/radi@latest/dist/radi.min.js) and it will be globally available through the window.Radi object. We support all ES5-compliant browsers, including Internet Explorer 10 and above.
|
16 |
|
17 | ```html
|
18 | <script src="https://unpkg.com/radi@latest/dist/radi.min.js"></script>
|
19 | <script>
|
20 | const { r, Component, mount } = Radi;
|
21 | ...
|
22 | </script>
|
23 | ```
|