Get started with inferno-devtools CDN

MIT licensed

Inferno-devtools: Real-time rendering updates, component inspector for Inferno JS framework.

Tags:
  • babel
  • react
  • inferno
  • framework
  • interfaces
  • user interfaces

Stable version

Copied!

How to start using inferno-devtools CDN


import Inferno from 'inferno';
import { createDevTools } from 'inferno-devtools';

class App extends Inferno.Component {
  constructor() {
    super();
    this.state = { count: 0 };
  }

  increment = () => {
    this.setState({ count: this.state.count + 1 });
  };

  render() {
    return (
      <button onClick={this.increment}>
        Count: {this.state.count}
      </button>
    );
  }
}

createDevTools(Inferno, 'root');

Inferno.start(<App />, document.getElementById('root'));
Copied!
Copied!

All versions