Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 251 Bytes

CODE_SNIPPET.md

File metadata and controls

13 lines (9 loc) · 251 Bytes

useC2Mod

example

import { useC2Mod } from 'services/concent';

export function Example() {
  const { state, setState } = useC2Mod('Counter');
  return <h1 onClick={() => setState({ value: state.value + 1 })}>{state.value} </h1>;
}