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.
A big thank you to the author and contributers of the popular immer package, as drifting relies heavily on this package under the hood.
drifting requires React 16
npm
npm install --save drifting
yarn
yarn add drifting
import { useData } from 'drifting'
const record = {
attributes: {
name: 'Exivity'
}
}
// See sandboxes for usage examples
const [entity, controller] = useData(record)
MIT