Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 700 Bytes

README.md

File metadata and controls

37 lines (32 loc) · 700 Bytes

feathers-rematch-react-bindings

Instalation

yarn add feathers-rematch-react-bindings
or
npm install feathers-rematch-react-bindings --save

Usage

<Snapshot
      name="products"
      publication="expensives"
      find={siftQuery} // https://www.npmjs.com/package/sift
      renderEach={(data, idx) => (
        <div key={idx}>
          <p>renderEach:</p>
          <pre>
            {JSON.stringify(data, null, 2)}
          </pre>
        </div>
      )}
    />

    <Service
      name="products"
      find={{ query: {price: 2000} }}
      renderEach={(data, idx) => (
        <pre key={idx}>
          {JSON.stringify(data, null, 2)}
        </pre>
      )}
    />