re: Let's build a search bar in React! VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Interesting. How would you suggest preventing that issue in a project like this?
 

Use call back format for setState.

this.setState(state => {
  const list = state.list;
  /* modify list */;
  return {
    list: modifiedList
  };
});
code of conduct - report abuse