T
T
Tikhon Ermakov2020-08-13 07:54:29
React
Tikhon Ermakov, 2020-08-13 07:54:29

What approach to implementation is more correct?

The subscription page, in which, when clicking on the subscription, we should get to the "order" checkout page - /checkout .

When we get to the checkout, we need to know which subscription (product) the user has chosen.

What do you think, what to choose for implementation and how would you do it, also note that we do not record in the database what the user has chosen before placing an order:

  1. Redux - just dispatch and redirect.
  2. Link state - just a link through which we transfer the state through the property of the data we need in the cell.
  3. Your option...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
twoone, 2020-08-14
@twoone

Personally, it seems to me that in a spa application, it is worth passing values ​​using query only in cases of a public link. For example, a custom build of a computer that I want to share on a thematic forum. In other cases, it is better to create a basket model (store/localeStorage).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question