react-firehooks
TypeScript icon, indicating that this package has built-in type declarations

4.2.0 • Public • Published

npm downloads npm bundle size tests license semantic-release

React Firehooks 🔥🪝

Lightweight dependency-free collection of React hooks for Firebase.

Installation

npm install react-firehooks

or

yarn add react-firehooks

Compatibility

Usage

Type Documentation

This library consists of 6 modules with many hooks:

All hooks can be imported from react-firehooks directly or via react-firehooks/<module> to improve tree-shaking and bundle size.

Development

Build

To build the library, first install the dependencies, then run npm run build.

npm install
npm run build

Tests

To run the tests, first install the dependencies, then run npm test. Watch mode can be started with npm test -- --watch.

npm install
npm test

Resources

React Firebase Hooks

This library is heavily inspired by react-firebase-hooks. It was created because react-firebase-hooks seemed unmaintained and did not support Firebase v9 for a couple of months. react-firehooks is not a fork but a completely new code base exporting almost identical hooks.

License

MIT

/react-firehooks/

    Package Sidebar

    Install

    npm i react-firehooks

    Weekly Downloads

    158

    Version

    4.2.0

    License

    MIT

    Unpacked Size

    91 kB

    Total Files

    105

    Last publish

    Collaborators

    • andipaetzold