Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export default () => {
const [text, setText] = useState('')
const oast = parse(text)
const hast = toHAST(oast)
const html = stringify(hast)
return (
<input value="{text}" rows="10"> setText(e.target.value)}/>