You can check a example with hooks here:
Install the repo's dependencies, then open this file in a browser.
To view an example within create-react-app,
git clone https://github.com/TheCognizantFoundry/react-loader.git
cd react-loader/examples/create-react-app
npm install
npm start
Then view the application in your browser at http://localhost:3000/.