Returning null from setState3:37 with Guil Hernandez
React 16 lets you decide if state gets updated via
setState to prevent unnecessary re-renders. In your events, you can check if the new value of state is the same as the existing one. If the values are the same, you can return
null and it won’t re-render a component.
You need to sign up for Treehouse in order to download course files.Sign up