import * as React from 'react' import { Atom, F } from '@grammarly/focal' interface CounterState { readonly count: number } interface AppState { readonly counter: CounterState } namespace AppState { export const defaultState: AppState = { counter: { count: 0 } } } const Counter = (props: { count: Atom }) => You have clicked this button {props.count} time(s). const App = (props: { state: Atom }) =>
Hello, world!
export default { Component: App, defaultState: AppState.defaultState }