UNPKG

380 BMarkdownView Raw
1## Mount
2
3Mount 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
6import { r, mount, Component } from 'radi';
7
8class MyComponent extends Component {
9 ...
10}
11
12mount(<MyComponent />, document.body)
13```