-
I'm new to React Router. This topic has been covered in multiple official documentations (API, tutorial), however I could not replicate working behaviour. If I am not mistaken, the following code is supposed to get "apple" from "something/search?q=apple".
However, my attempt throws an error at the first line (creation of URL), and I am able to create a working alternative by using react effects after the page is rendered, but I was under the impression that loaders should have this capability. I've also seen this feature request, but I did not learn anything from the response. Am I missing something? Please advise. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Nevermind, I misunderstood the syntax; it's my unfamiliarity with javascript. |
Beta Was this translation helpful? Give feedback.
Nevermind, I misunderstood the syntax; it's my unfamiliarity with javascript.
I used
{ params }
instead, thinking it was interchangeable.It works now.