3 ms·
> If you're developing a single page react app, I don't think you care about the back button. You should though. One easy way is to use react-router. e.g. goi
by creakingstairs 4y ago
> If you're developing a single page react app, I don't think you care about the back button.
You should though. One easy way is to use react-router. e.g. going to /profile renders the Profile component. Then navigating to /dashboard renders the Dashboard component. Pressing the back button will take you to /profile.
Another pet peeve of mine is people using internal react state when they should just use path or query params to make it transparent and easily sharable.