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

0.4.4 • Public • Published

Fireclient

  • 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.

Readme

Keywords

none

Package Sidebar

Install

npm i react-fireclient

Weekly Downloads

7

Version

0.4.4

License

MIT

Unpacked Size

132 kB

Total Files

43

Last publish

Collaborators

  • optimind-inc