organic_ast_explorer/src/Editor.tsx

20 lines
479 B
TypeScript
Raw Normal View History

2024-01-13 03:07:59 +00:00
import './Editor.css';
2024-01-13 02:42:12 +00:00
function Editor() {
function handleChange(event: React.ChangeEvent<HTMLTextAreaElement>) {
console.log(event.target.value);
}
return (
2024-01-13 03:07:59 +00:00
<div className="Editor">
2024-01-13 03:16:31 +00:00
<div className="Editor-textwrapper">
<textarea onChange={handleChange} className="Editor-textarea">I have text</textarea>
<div className="Editor-underlay"></div>
2024-01-13 03:16:31 +00:00
</div>
2024-01-13 03:07:59 +00:00
<div className="Editor-ast"></div>
</div>
2024-01-13 02:42:12 +00:00
);
}
export default Editor;