Skip to content

[bug?][help] how do you use render props in Next.js? #4045

@hashfiputra

Description

@hashfiputra

as the title said, how do you actually use it? do you need use client? if i dont use use client, i will get an error:

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check the render method of `Button`.

now the weird thing is, above the button has an image element, and if i remove the alt, it will work fine, i tried that because it work fine without using use client before i add the image

let me know if you need my code snippet

Metadata

Metadata

Assignees

No one assigned

    Labels

    support: questionCommunity support but can be turned into an improvement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions