Add types to Explorer props.
This commit is contained in:
parent
a11201363e
commit
33ed9c4f56
0
src/Editor.tsx
Normal file
0
src/Editor.tsx
Normal file
@ -21,7 +21,10 @@ In the AST on the right, you can:
|
|||||||
[fn:2] https://code.fizz.buzz/talexander/organic
|
[fn:2] https://code.fizz.buzz/talexander/organic
|
||||||
`;
|
`;
|
||||||
|
|
||||||
function Explorer({ defaultValue = default_org_source }) {
|
interface ExplorerProps {
|
||||||
|
defaultValue?: string;
|
||||||
|
}
|
||||||
|
function Explorer({ defaultValue = default_org_source }: ExplorerProps) {
|
||||||
function handleChange(event: React.ChangeEvent<HTMLTextAreaElement>) {
|
function handleChange(event: React.ChangeEvent<HTMLTextAreaElement>) {
|
||||||
setValue(event.target.value);
|
setValue(event.target.value);
|
||||||
clearHighlights();
|
clearHighlights();
|
||||||
|
Loading…
Reference in New Issue
Block a user