Next.js Discord

Discord Forum

Passing data to SSR functional component's parameter.

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
main compoennt is SSR .
const Prototype1PagePart: React.FC<Props> = async ({ clickedStatus }) => {
  console.log(clickedStatus);
. passed button clicked status to main component from CSR
import Prototype1PagePart from '@/components/header_6-pagePart/header_6-pagePart'; const ProfileButton1PagePart: React.FC<Props> = () => {
  const handleClick = () => {
    Prototype1PagePart({ clickedStatus: true });
  };
. its work. but is there any problem using this method?

1 Reply

Original message was deleted
Asian black bear
Please don't offer your services like this. The forum is designed for public troubleshooting.