@gregoranders/react-spinner
React Spinner intended to be used with Suspense
Features
- TypeScript
- Jest Unit Tests with Code Coverage
- GitHub CI Integration (feature, development, master, release)
- Code Quality via Code Climate and Codacy
| GitHub | Coveralls | | | —————————————————————- | ————————————————————————– | —————————————————————————- | | | | | | | | | | | | |
Example
import React, { Suspense } from 'react';
import Spinner from '@gregoranders/react-spinner';
export const App = () => {
return <Suspense fallback={<Spinner />}>...</Suspense>;
};
Clone repository
git clone https://github.com/gregoranders/react-spinner
Install dependencies
npm install
Build
npm run build
Test using Jest
npm test
Code Climate Checks docker required
npm run codeclimate
Codacy Checks docker required
npm run codacy
Clear
npm run clear