drifting
v1.0.10
Published
A fully typescript typed react solution for interacting with complex data-structures
Downloads
8
Maintainers
Readme
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