Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function rerender(cmp, i) {
render((
<main>
), document.getElementById('main'));
}
</main>
import { render } from 'inferno-dom';
import * as Component from 'inferno-component';
import * as elem from 'inferno-create-element';
const container = document.getElementById('app');
class MyComponent extends Component {
render() {
return elem('div', null, 'Hello world!');
}
}
render(elem(MyComponent), container);