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

Use parameter defaults instead of defaultProps #882

Merged
merged 6 commits into from
Dec 21, 2022
Merged

Conversation

manuelpuyol
Copy link
Contributor

React is going to deprecate defaultProps in function components: https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md#deprecate-defaultprops-on-function-components

Instead of using defaultProps, we can rely on default parameters instead!

@manuelpuyol manuelpuyol requested a review from a team as a code owner December 16, 2022 20:48
@changeset-bot
Copy link

changeset-bot bot commented Dec 16, 2022

🦋 Changeset detected

Latest commit: 9ebb876

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/octicons Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@manuelpuyol manuelpuyol temporarily deployed to github-pages December 16, 2022 20:52 — with GitHub Actions Inactive
@manuelpuyol manuelpuyol temporarily deployed to github-pages December 16, 2022 20:57 — with GitHub Actions Inactive
@manuelpuyol manuelpuyol temporarily deployed to github-pages December 16, 2022 21:43 — with GitHub Actions Inactive
@manuelpuyol
Copy link
Contributor Author

@colebemis any chance we could get this merged and released? 😄

@colebemis colebemis merged commit 503bafb into main Dec 21, 2022
@colebemis colebemis deleted the icon-default-props branch December 21, 2022 19:45
@primer-css primer-css mentioned this pull request Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants