0.4.4 • Published 4 years ago

react-fireclient v0.4.4

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

Fireclient

npm.io npm.io npm.io npm.io

  • Declative: By using Fireclient Query Language(FQL), you can write Firestore queries declatively.
  • Scalable: Fireclient is designed to be used on big React applications. It'll speed up your development and keep your source code tidy event if it's scaled.
  • Simple: Quite simple and easy to use for both of big applications and small applications.

Installation

npm install --save react-fireclient
yarn add react-fireclient

Examples

Here is the most simplest example:

function View() {
  const [nagoya, loading, error] = useGetDoc("/cities/nagoya");
  return (
    <>
      {loading && <div>loading</div>}
      {error && <div>error</div>}
      {nagoya && <div>{nagoya.data.name}</div>}
    </>
  );
}

This example will get doc from "/cities/nagoya" in Firestore and render doc data.

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago