import SimpleMdeReact, { SimpleMdeToCodemirrorEvents } from "../SimpleMdeReact"; import { useState } from "react"; import React from "react"; import {State} from "./UpdateUsingButtonWithAutofocus"; export const DynamicallyChangingEvents = () => { const [value, setValue] = useState(`Blur away to see initial event behavior`); const [events, setEvents] = useState({ blur: (_) => { console.log("blur"); setValue(`I'm initial event behavior`); }, }); return (

Dynamically changing event listeners

); };