Repository URL to install this package:
|
Version:
3.0.10 ▾
|
import { IncrementerState } from './IncrementerState'
import { IncrementerProps } from './typings'
function initIncrementerState() {
return new IncrementerState()
}
function toIncrementerState(props: IncrementerProps) {
if (props.state === undefined) {
const state = initIncrementerState()
state.update(props)
return state
} else {
return props.state
}
}
export { initIncrementerState, toIncrementerState }