In this page, they use Suspense
with React.lazy
for lazily loading components. However, Suspense
itself is listed under the experimental Conccurrent mode
which is not stable yet as they note here. I don't understand. Can I use Suspense
in production ?
Asked
Active
Viewed 1,043 times
4

just human
- 51
- 1
- 3
-
I don't understand the confusion - you found the clear statement saying not to? – Asteroids With Wings Oct 30 '20 at 19:22
-
1Well, they mention you can not use `React.lazy` without `Suspense`. However, It's fine to use React.lazy in production. That's nonsense. Also, There are many libraries that make use of `Suspense` such as 'reacti18next`. – just human Oct 30 '20 at 19:32
-
Sounds like you have your answer already then. – Asteroids With Wings Oct 30 '20 at 19:48
-
Then, why do react docs mention that it's experimental and should not be used in production ? – just human Oct 30 '20 at 19:53
-
You'd have to ask the person who wrote them... – Asteroids With Wings Oct 30 '20 at 20:22