@christiangenco/use-firebase

0.0.1 • Public • Published

// const { data, add, update, remove, loading, error } = useCollection("pages") // const { data, update, debouncedUpdate, remove, loading, error } = useDoc("pages/foo");

Firestore

  • automatically maps dates with toDate()
import { renderHook, act } from "@testing-library/react-hooks";
test("useCounter increments count", () => {
  const { result } = renderHook(() => useCounter());

  act(() => {
    result.current.increment();
  });

  expect(result.current.count).toBe(1);
});

Readme

Keywords

none

Package Sidebar

Install

npm i @christiangenco/use-firebase

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

36.2 kB

Total Files

31

Last publish

Collaborators

  • christiangenco