This primitive intends to support all (eventually) native methods of the Object object, with a few helper methods.
Object
xxxxxxxxxx
() => {
const obj = useObject({ firstName: 'John' })
const addLastName = () => obj.merge({ lastName: 'Doe' })
return (
<>
<Button
onClick={addLastName}
size="large"
type="primary"
style={{ margin: '.5em' }}
>
Add 'lastName'
</Button>
<List
bordered
dataSource={obj.entries()}
renderItem={([key, val]) => (
<List.Item>
{key}: {val}
</List.Item>
)}
/>
</>
)
}