penguin-inplace
Installation
$ npm i -S penguin-inplace
Then edit your package.json
file to include the component.
Usage
My default content
This component uses contenteditable to make the target element editable and decodes all HTML by using innerText
to set the content. The static part simply renders the innerHTML
of the element.
Props
field
- Specifies the field to modify in the state