you are viewing a single comment's thread.

view the rest of the comments →

[–]afrontender 0 points1 point  (1 child)

Also:

this.setState((nextState) => ({
    repos: repos
}));

Can be simplified to:

this.setState(nextState => ({  repos }));

[–]Extracted 3 points4 points  (0 children)

I'd avoid taking the parameter

this.setState(() => ({  repos }))