diff --git a/app/components/UrlForm.tsx b/app/components/UrlForm.tsx index 6a57616b..8bcc161b 100644 --- a/app/components/UrlForm.tsx +++ b/app/components/UrlForm.tsx @@ -1,3 +1,4 @@ +import { useState } from "react"; import { Form } from "remix"; export type UrlFormProps = { @@ -5,6 +6,10 @@ export type UrlFormProps = { }; export function UrlForm({ className }: UrlFormProps) { + const [inputValue, setInputValue] = useState(""); + + const isButtonDisabled = !inputValue.length; + return (
setInputValue(event.target.value)} />