Closed thien-do closed 2 years ago
Currently we check if "href" exist to render either "button" or "a" inside "Button". In the case of "a", we don't pass the onClick. This is actually wrong since onClick is still useful for a. For example: https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag
Currently we check if "href" exist to render either "button" or "a" inside "Button". In the case of "a", we don't pass the onClick. This is actually wrong since onClick is still useful for a. For example: https://nextjs.org/docs/api-reference/next/link#if-the-child-is-a-custom-component-that-wraps-an-a-tag