npm

drifting

1.0.10 • Public • Published

drifting

React solution for interacting with complex data-structures.

This package attempts to make it easier to interact with complex data structures. Drifting is fully typed with typescript and easy to extend with your own solutions.


Examples

record

collection

chaining

predicates


A big thank you to the author and contributers of the popular immer package, as drifting relies heavily on this package under the hood.

Installation

drifting requires React 16

npm

npm install --save drifting

yarn

yarn add drifting

API

useData()

import { useData } from 'drifting'

const record = {
  attributes: {
    name: 'Exivity' 
  }
}

// See sandboxes for usage examples
const [entity, controller] = useData(record)

License

MIT

Package Sidebar

Install

npm i drifting

Weekly Downloads

1

Version

1.0.10

License

MIT

Unpacked Size

37 kB

Total Files

24

Last publish

Collaborators

  • michiel87