#I can't use the react hook "useEffect()"
21 messages · Page 1 of 1 (latest)
is there any other way to check if the inputs are empty when the user sends a form on the server side only with astro frontmatter or do i have to go to react components?
Go for what's simplier to do for you
Can I create a "page" immediately with react? Like with astro frontmatter
You can use astro integration with react so part of Astro page will use react and you can add it as if it was Astro component
Can i create Layouts with react?
Layouts? Meaning?
Basicly this example for layouts "Astro"
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content="Astro description" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
</head>
<body>
<slot />
</body>
</html>
I will use slot
Or, you can make only form in react and the rest in Astro
I must switch to react its a dashboard
Now i can't write in the component. But why?
<h1>Test</h1> is not render
You need to post a stackblitz to get more help here!
What is stackblitz