J
J
Jedi2020-01-11 04:02:12
React
Jedi, 2020-01-11 04:02:12

How to setup React lazy with React Router DOM?

How can I set up React Lazy and Suspense if I import routes from a file?
Import routes from this lesson .
How can I implement Lazy with Suspense using this way of importing routing?
If you have your own implementation, please describe. Usually, the code looks very sloppy as a lot of components are imported.
Advise a competent and accurate solution.
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question