Skip to content

Instantly share code, notes, and snippets.



Created Oct 14, 2020
What would you like to do?
DmnPage File State
import { File } from "@kogito-tooling/editor/dist/embedded";
export function DmnPage() {
const [file, setFile] = useState<File>({
fileName: "new-file",
fileExtension: "dmn",
getFileContents: () => Promise.resolve(""),
isReadOnly: false,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment