loading...

Discussion on: React Hooks for Data Part 1 - Fetching Data

Collapse
webcoderkz profile image
Alexander Kim

How do you deal with this part:

if (loading) return <div>Loading...</div>

This causes annoying flashing, before promise is resolved. Is there a way to show this loader inside actual markup, instead of this single element with Loading...?