Declarative routing -- what/when/why? I want to understand!
For further actions, you may consider blocking this person and/or reporting abuse
Declarative routing -- what/when/why? I want to understand!
For further actions, you may consider blocking this person and/or reporting abuse
Dumebi Okolo -
Richard Choi -
Vikas76 -
ATIXAG -
Top comments (2)
This isn't ELI5, but in Angular, I used routerReducer to control the router in the store. In React, perhaps that is what is meant by:
So imagine you want to dispatch an action and then navigate to another route in your application. Declarative routing may let you do both at the same time.
Another example might be that you want to change the way a user interacts with an application after visiting a new screen. I've seen this pattern take some heat before, but I remember implementing it once before. I'll see if I can post a relative example.
I haven't visited this in React yet, but now that you've brought it to my attention, I will! Thanks!
Ah! Thanks, Jesse. "Declarative routing may let you do both at the same time." -- this line, in particular, will stick with me.