You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
439 B
17 lines
439 B
import { useEffect, useState } from 'preact/hooks';
|
|
|
|
export const SpellChecker = () => {
|
|
const [regex, setRegex] = useState<string>();
|
|
useEffect(() => {
|
|
if (!regex) {
|
|
setRegex(new URL(`./assets/img/abc.def`, import.meta.url).href);
|
|
}
|
|
}, [regex]);
|
|
return (
|
|
<section>
|
|
<textarea rows={10} cols={100}>
|
|
{regex}
|
|
</textarea>
|
|
</section>
|
|
);
|
|
};
|
|
|