Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to add children to props #1

Open
gndelia opened this issue Nov 14, 2020 · 0 comments
Open

Add option to add children to props #1

gndelia opened this issue Nov 14, 2020 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@gndelia
Copy link
Owner

gndelia commented Nov 14, 2020

The current behaviour removes React.FC from the component declaration, which has an implicit definition of children, leaving its definition to be set manually in each case. An option could be set to forcefully add { children?: React.ReactNode } as props, which are the value that React.FC offers. It should be an opt-in option

@gndelia gndelia added the enhancement New feature or request label Nov 14, 2020
@gndelia gndelia added the good first issue Good for newcomers label Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant