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 description of react-select custom components in migration guide v6 #959

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions sections/faqs/migration-v6.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,9 @@ const ButtonLink = styled(Button).attrs({ as: 'a' })``;
### Minimum Node support raised to v16+

In line with the [maintenance schedule](https://github.com/nodejs/release#release-schedule) for Node, we now support v16 as the oldest runtime that's still receiving security patches.

### If you are using react-select

If you are creating a custom component using a styled-components theme, such as react-select, you need to pass the theme explicitly using [`.attrs` constructor](https://styled-components.com/docs/api#attrs).

See [codesandbox](https://codesandbox.io/p/sandbox/styled-component-with-react-select-forked-m62nj4?file=%2Fexample.js) for specific example.