Allows to display prices of up to ten selected cryptos in a table.
git clone https://github.com/sgtpep/test-crypto-prices.git
cd test-crypto-prices
npm i
npm start
npm run start
— Start a local development server.npm run build
— Build static files for production.npm run typecheck
— Perform type checking.npm run lint
— Run lint checks.npm run format
— Format code.npm run test
— Run tests.npm run check
— Run all the above scripts.
components/
— reusable components.features/
— app code organized in "feature folders", as recommended by@redux/toolkit
.helpers/
— reusable functions.types/
— common types.App.tsx
,index.tsx
— entrypoints.store.ts
— an app store.
- The app was created from
redux-typescript
template. - The state management is based on
@react/toolkit
with its concept of state slices. - Added nominal types to some primitive values (like ids, amounts, etc.) to distinguish them from basic types. See https://basarat.gitbook.io/typescript/main-1/nominaltyping, microsoft/TypeScript#202 for details.