/
githubmirror
/
stackwise
Обзор
Документация
Войти
/
githubmirror
/
stackwise
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
app/components/stacks/creation/Inputs.tsx
25 строк
480 B
Silen Naihin
readability and restructuring
19 фев 2024, 00:00
19 фев 2024, 00:00
0fdf743
Код
Авторство
О чём код?
import parse from 'html-react-parser'; import tw from 'tailwind-styled-components'; interface InputsProps { formAction: (payload: FormData) => void; state: string; } const Inputs: React.FC<InputsProps> = ({ formAction, state }) => { return ( <Form className="common-styled" action={formAction}> {parse(state)} <button type="submit">Submit</button> </Form> ); }; export default Inputs; const Form = tw.form` flex flex-col space-y-2 w-1/2 `;