import * as React from 'react'; import { autoSync } from '../../autoSync'; import { ExampleFrame } from '../../ExampleFrame'; import { AppState } from '../state'; import { Counter } from './Counter'; const App: React.SFC = (props) => (
props.counter1.increment()} title="counter 1 - ID = 8 (in sync with counter 3)">
props.counter2.increment()} title="counter 2 - ID is auto-generated">
props.counter3.increment()} title="counter 3 - ID = 8 (in sync with counter 1)">
props.counter4.increment()} title="counter 4 - ID is auto-generated">
); const connected = autoSync(AppState, false)(App); export { connected as App };