W
W
Wasya UK2018-03-20 16:53:31
Node.js
Wasya UK, 2018-03-20 16:53:31

How to do routing for an online store?

Since the online store will be on react, then the 1st page will be enough, I thought. Well, if you follow a direct link to the product, then how to be? I thought about making several page template files, but then how can I connect React there, can I pass parameters to it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Egor Zhivagin, 2018-03-20
@dmc1989

You connect React 1 time, you have a lot of component template files, react-router is responsible for switching between them. Question about this?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question