To run the project, do the following:
- get an api key for tmdb here: https://developers.themoviedb.org/3
npm install
- start the app with your key defined in the
REACT_APP_TMDB_API_KEY
environment variable:REACT_APP_TMDB_API_KEY=<your api key> npm start
Use the synchronous
branch to showcase the app without any suspense or time slicing features and synchronous import of mock data instead of api integration.
Most importantly:
- https://www.youtube.com/watch?v=v6iR3Zk4oDY
- https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html
- https://reactjs.org/blog/2018/03/01/sneak-peek-beyond-react-16.html
And additionally:
- https://codesandbox.io/s/5zk7x551vk
- https://dev.to/swyx/a-walkthrough-of-that-react-suspense-demo--4j6a
- https://medium.com/@lmatteis/react-suspense-for-the-layman-caae7f48686f
- https://auth0.com/blog/time-slice-suspense-react16/
- https://medium.com/@baphemot/understanding-react-suspense-1c73b4b0b1e6
Uses: