1 | ## Mount
|
2 |
|
3 | Mount is a function that will mount anything that [view](#view) returns ([Hyperscript](#hyperscript)/JSX nodes, DOM Nodes, Component or Array of these three) to any DOM node. This is how we mount our Apps root component to DOM.
|
4 |
|
5 | ```jsx
|
6 | import { r, mount, Component } from 'radi';
|
7 |
|
8 | class MyComponent extends Component {
|
9 | ...
|
10 | }
|
11 |
|
12 | mount(<MyComponent />, document.body)
|
13 | ```
|