This is a single-spa Application responsible for the MADiE application's editor
import React, { useState } from "react";
import { MadieEditor } from "@madie/madie-editor";
const Usage = () => {
const [content, setContent] = useState("");
const handleChange = (nextValue) => {
setContent(nextValue);
};
return (
<div>
<MadieEditor value={content} onChange={handleChange} />
</div>
);
};
Common props you may want to include:
parseDebounceTime
- debounce time to invoke parser in milliseconds (default 1500ms)onChange
* - subscribe to change eventsvalue
* - control the current value
*
- denotes a required prop