cooper-ts
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

CooperTS

CooperTS is an opinionated ecosystem for building web apps with React Typescript.

Not a Framework

CooperTS is a collection of libraries, design patterns, and strongly-held opinions that we think make building web apps fun, easy, and a joy to maintain.

Eventually CooperTS will include tooling to help you implement some of the design patterns quickly.

Opinions

  • Null is not a good representation of nothing.
  • JSON from API endpoints should be validated against our expectations as it is decoded
  • Side effects should be implemented as reactions
  • Typechecking is preferable to writing tests to validate types
  • It should be impossible to enter into an invalid state

Design Patterns

  • Finite State Machines
  • Decoders
  • Reactions
  • Stores
  • Error handling
  • API calls
  • API data design (based on HATEOAS)

Libraries We Use

Docs

API

Package Sidebar

Install

npm i cooper-ts

Weekly Downloads

8

Version

0.0.8

License

MIT

Unpacked Size

4.6 MB

Total Files

69

Last publish

Collaborators

  • davidray