1
1
12332112020-09-02 16:39:22
JavaScript
1233211, 2020-09-02 16:39:22

How to make a page preloader using hooks?

How can I make react show a preloader before all requests are executed on a particular page?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aleks_web_dev, 2020-09-02
@aleks_web_dev

Create a loding field using the hook as soon as the request works, change the value, and in the jsx framework, make the condition that until loading is false, the preload will be shown

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question