WIP...
Live demo http://fe.jimu.io/code-rule-editor/
yarn add @jimengio/code-rule-editorlet [segments, setSegments] = useState([]);
<CodeRuleEditor
segments={[]}
onSubmit={(xs) => {
setSegments(xs);
}}
/>;https://github.com/jimengio/ts-workflow
MIT