ϒϥβͰಈ͘͠…
import { useMemo, useState } from 'react'
import { createFlavMd } from 'flav-md';
function App() {
const [text, setText] = useState('');
const flavMd = useMemo(() => createFlavMd(), []);
const renderedText = useMemo(() => flavMd.readMdText(text).build(), [text]);
return (
setText(e.target.value)} />
)
}
export default App