Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Dot notation for subcomponents, Example #52

Open

Description

@sanjarcode

Dot notation with React functional components
https://stackoverflow.com/questions/60883388/using-dot-notation-with-functional-component-in-typescript


another usage - whenever make a reusable component, attach .Examplefor quick usage help, experiment.
Add a props spread for overridable (optional, so provide actual values too)

export default function CheckboxDropdown() {}

CheckboxDropdown.Example = (props) => <CheckboxDropdown addRealisticProps {...props} />;

Activity

  1. self-assigned this
    on Nov 19, 2023
  2. changed the title [-]Dot notation for component with subcomponents[/-] [+]Dot notation for subcomponents, Example[/+] on Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions