In my project frontend is in React and the backend is Ruby on Rails. I was trying to get rails routes in React.
Right now
I am creating path using 'word1/:id/word2'.
Is there any better way of doing it?
Like the same way we do in rails -> 'word2_word1_path(:id)'?
Any suggestions will be helpful.
Top comments (0)