You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just a little thing, but here you're destructuring two different props on two different lines.
You could simplify it to const { increment, firstZombieAppeared } = props;, or even this.setState((prevState, { increment, firstZombieAppeared }) => {...
The text was updated successfully, but these errors were encountered:
Just a little thing, but here you're destructuring two different props on two different lines.
You could simplify it to
const { increment, firstZombieAppeared } = props;
, or eventhis.setState((prevState, { increment, firstZombieAppeared }) => {...
The text was updated successfully, but these errors were encountered: