M
M
Mikhail Nosov2019-01-07 15:48:08
React
Mikhail Nosov, 2019-01-07 15:48:08

How to lazy load React?

Good afternoon everyone!
I've been googling for days now, but I can't find an answer to my question.
There is a website. Backend on Laravel framework.
The site is fully optimized and does not want to clog the speed with unnecessary scripts.
However, hunting for the frontend to work through React.
Let's take an email subscription form as an example. It is fully loaded and works with reloading the page - the message "Check your mail and confirm your Email" is displayed.
Is it possible to make React load only when you click on the email address input field, and then when you click on the "Subscribe" button, all the magic happens. Did you write data to the database, send a message, and display a "Check your mail and confirm your email" notification without reloading the page?
How to do this?
Tell me please.

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