Closed tezzutezzu closed 5 years ago
Good point. Do you have the time to fix it first over here: https://github.com/rwieruch/the-road-to-react-with-firebase in a PR? Afterward, all applications built in the tutorial should be adjusted as well (which I can do):
Fixed in tutorial, will fix later in applications.
Hi @rwieruch and thanks for your hard work on this.
In your example, shouldn't the Route components' value be a class rather than an inline function?
According to react-router docs, in that way a new component is created every time rather than being updated.
Here's a proposed change: