/react-generics

Hooks and components for your React's projects.

Primary LanguageTypeScriptMIT LicenseMIT

React Generics

Hooks, components and scripts for your React's projects.

NOTE: This is a working project, more content will be added as soon as:

  1. I find myself repeating things in different projects.
  2. I discover new components or hooks that are worth keeping here.

Table of Contents

Usage

As simple as copy and paste the code of what you need.

Generics

Tooling

  • TypeScript:
    1. Avoid defensive programming.
    2. Move run-time errors to compile time.
    3. Amazing editor integration if you are using vscode.
  • ESLint:
    1. Make code more consistent and avoiding bugs.
  • Prettier:
    1. Format code.

License

MIT