This project was bootstrapped with Create React App.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Performance
The list of images could potentially be infinite. As the list gets larger, the amount of dom nodes present will be an issue.
A tool such as react-window could be leveraged to ensure that only the components that are present in the view are on display.
Testing
At present, there are no tests. React-testing-library is the best candidate for testing components such as the InfiniteLoader.
Storybook / Ladle
My first iteration included storybook - as a means to show the possibilities of using the component (i.e. using multiple apis, different renderContent calls etc.)