|
|
|
|
|
by woojoo666
1496 days ago
|
|
I think React tends to encourage local solutions (using a Link component) over global ones (inserting a global click handler) when possible. Global solutions are less composable and will cause issues if you have multiple independent teams working on the same page (eg maybe they need different click handlers) |
|
The History API, as it stands, is global state. That makes it one of the very few places where I say it is better to use a global solution, rather than a precise one.