# Slice & dice subtree state in React
;; Component { superprops; thisstate = user: details: name: "Sebastian" billingAddress: address: "Surgeon Drive 4" city: "Meditown" zip: "9050" shippingAddress: address: "Hospital Avenue 1A" city: "Mediville" zip: "9000" ; } { return <Incision container=this> <TextInput label="Name" path="details.name" /> <IncisionSlice path="billingAddress"> <AddressFields /> </IncisionSlice> <IncisionSlice path="shippingAddress"> <AddressFields /> </IncisionSlice> </Incision> ; } { return <IncisionOperate path=path> <label> label:" " <input value=value onChange= /> </label> </IncisionOperate> ;} { return <> <TextInput label="Address" path="address" /> <TextInput label="City" path="city" /> <TextInput label="Zip" path="zip" /> </> ;}
Installation
You can install the package via npm or yarn:
npm install react-incision
yarn add react-incision
Make sure react@^16.5.2
is also installed.
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
$ yarn test
Credits
License
The MIT License (MIT). Please see License File for more information.