M
M
Mirrrta2020-06-23 19:34:45
JavaScript
Mirrrta, 2020-06-23 19:34:45

How to output breadcrumbs in react?

How to output breadcrumbs in react?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
yurii_oliiarnyk, 2020-06-24
@Mirrta

1. You need to extract the value from the location.pathname line. Let's say /menu11
2. Then create a recursive function that will return an array with ancestor objects.
I can make some code.
3. Well, then just map this array.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question