mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fixed null input value. Tweaked useReducer test harness.
This commit is contained in:
@@ -47,9 +47,10 @@ function StatefulFunction({ name }: StatefulFunctionProps) {
|
||||
</button>
|
||||
</li>
|
||||
<li>
|
||||
<button onClick={handleUpdateReducerClick}>
|
||||
Reducer state: {JSON.stringify(data, null, 2)}
|
||||
</button>
|
||||
Reducer state: foo "{data.foo}", bar "{data.bar}"
|
||||
</li>
|
||||
<li>
|
||||
<button onClick={handleUpdateReducerClick}>Swap reducer values</button>
|
||||
</li>
|
||||
</Fragment>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user