Get started with inferno-mobx CDN

MIT licensed

Inferno-MobX is a React rendering engine integrated with the MobX state management library.

Tags:
  • babel
  • react
  • inferno
  • framework
  • interfaces
  • reactive
  • mobservable
  • mobx

Stable version

Copied!

How to start using inferno-mobx CDN


import React from 'react';
import { observable, action } from 'mobx';
import { observer } from 'inferno-mobx';

@observable class CounterStore {
  @observable count = 0;

  @action increment = () => {
    this.count++;
  };
}

const counterStore = new CounterStore();

const Counter = observer(() => {
  return (
    <button onClick={() => counterStore.increment()}>
      Count: {counterStore.count}
    </button>
  );
});

React.render(<Counter />, document.getElementById('root'));
Copied!
Copied!

All versions

1.0.0-beta10 1.0.0-beta11 1.0.0-beta12 1.0.0-beta13 1.0.0-beta14 1.0.0-beta15 1.0.0-beta16 1.0.0-beta17 1.0.0-beta18 1.0.0-beta19 1.0.0-beta2 1.0.0-beta20 1.0.0-beta21 1.0.0-beta22 1.0.0-beta23 1.0.0-beta24 1.0.0-beta25 1.0.0-beta26 1.0.0-beta27 1.0.0-beta28 1.0.0-beta29 1.0.0-beta3 1.0.0-beta30 1.0.0-beta31 1.0.0-beta32 1.0.0-beta33 1.0.0-beta34 1.0.0-beta35 1.0.0-beta36 1.0.0-beta37 1.0.0-beta38 1.0.0-beta39 1.0.0-beta4 1.0.0-beta40 1.0.0-beta41 1.0.0-beta42 1.0.0-beta43 1.0.0-beta44 1.0.0-beta45 1.0.0-beta5 1.0.0-beta6 1.0.0-beta7 1.0.0-beta8 1.0.0-beta9 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.3.0 1.3.0-rc.0 1.3.0-rc.1 1.3.0-rc.10 1.3.0-rc.2 1.3.0-rc.3 1.3.0-rc.4 1.3.0-rc.5 1.3.0-rc.6 1.3.0-rc.7 1.3.0-rc.8 1.3.0-rc.9 1.3.1 1.4.0 1.4.1 1.4.2 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1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