react counter example codesandbox