Skip to content

Instantly share code, notes, and snippets.

@ljmotta

ljmotta/DmnPage.tsx

Created Oct 14, 2020
Embed
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