Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 384 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 384 Bytes

Cicero-UI - ContractEditor

Usage

npm install @accordproject/cicero-ui
import { ContractEditor } from '@accordproject/cicero-ui';

function storeLocal(editor) {
  localStorage.setItem('markdown-editor', editor.getMarkdown());
}

ReactDOM.render(<ContractEditor onChange={storeLocal} />, document.getElementById('root'));

Props

Available props incoming: