How to use inferno-dom - 2 common examples

To help you get started, we’ve selected a few inferno-dom examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github grgur / stateless-vs-pure / app-inferno / js / main.js View on Github external
function rerender(cmp, i) {
  render((
    <main>
  ), document.getElementById('main'));
}
</main>
github infernojs / inferno-typescript-example / src / index.ts View on Github external
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);

inferno-dom

Provides methods to render DOM nodes from Inferno elements

MIT
Latest version published 8 years ago

Package Health Score

62 / 100
Full package analysis

Popular inferno-dom functions