Skip to content

Michiel87/drifting

Repository files navigation

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


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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages