Noob question: How to pass a string to a child component?
I used prisma to get two strings from a database, now I want to give those two strings to a client component. This is because client components cant use prisma.
I'm new to react, how can I pass these strings to the client component?
I'm thinking something like this:
and then the main page.tsx would have like:
How should I do this? This has been taking an embarrassing amount of time trying to figure out.
I'm new to react, how can I pass these strings to the client component?
I'm thinking something like this:
and then the main page.tsx would have like:
How should I do this? This has been taking an embarrassing amount of time trying to figure out.
