anchor.diff:  import 'package:react/react_dom.dart' as react_dom;
   import 'package:react/react_client.dart';
   
  -var useReducerTestFunctionComponent = react.registerFunctionComponent(UseReducerTestComponent, displayName: 'useReducerTest');
  +var useStateTestFunctionComponent = react.registerFunctionComponent(UseStateTestComponent, displayName: 'useStateTest');
  +
  +UseStateTestComponent(Map props) {
  +  final count = useState(0);
  +
  +  return react.div({}, [
  +    count.value,
  +    react.button({'onClick': (_) => count.set(0)}, ['Reset']),
  +    react.button({
  +      'onClick': (_) => count.setWithUpdater((prev) {
  +        if (props['enabled']) {
  +          return prev + 1;
  +        } else {
  +          return prev;
  +        }
  +      }),
  +    }, [
  +      '+'
  +    ]),
  +  ]);
  +}
  +
  +var useReducerTestFunctionComponent =
  +    react.registerFunctionComponent(UseReducerTestComponent, displayName: 'useReducerTest');
   
   Map initializeCount(int initialValue) {
     return {'count': initialValue};
  
positive.code:         react.Fragment({}, [
            react.h1({'key': 'functionComponentTestLabel'}, ['Function Component Tests']),
            react.h2({'key': 'useStateTestLabel'}, ['useState Hook Test']),
            useReducerTestFunctionComponent({
              'key': 'useStateTest',
              'initialCount': 10,
            }, []),
          ]),
  
negative.code:     ]),
      react.button({
        'onClick': (_) => state.dispatch({
              'type': 'reset',
              'payload': props['initialCount'],
            })
      }, [
        'reset'
      ]),
  