icyJoseph / react-cache-resources

Naive implementation of time slicing for study purposes

Repository from Github https://github.comicyJoseph/react-cache-resourcesRepository from Github https://github.comicyJoseph/react-cache-resources

Time Slicing

A small react study, which uses a try-catch block to mock a React Fiber, that tries to shows asynchronously obtained data, and catches when the data is not preset in a cache.

When the catch happens, a fallback is shown and the data is fetched from the network.

Once the data arrives, the data is placed in the cache, the Fiber re-renders the component and adds it to the DOM.

This project uses Parcel to put together a react app.

About

Naive implementation of time slicing for study purposes


Languages

Language:JavaScript 90.3%Language:HTML 9.7%