Skip to content

feat: supporting react 18 - #99

Merged
erunion merged 2 commits into
mainfrom
feat/support-react-18
May 2, 2022
Merged

erunion merged 2 commits into
mainfrom
feat/support-react-18

Conversation

@erunion

@erunion erunion commented May 2, 2022 •

Copy link
Copy Markdown
Member

🧰 Changes

  • Allowing installs on React 18 codebases.

🧬 QA & Testing

All React 18 tests should be passing!

@erunion erunion added the enhancement New feature or request label May 2, 2022
@erunion
erunion marked this pull request as ready for review May 2, 2022 16:03
@erunion
erunion requested review from a team, ellierossuck, kellyjosephprice and rafegoldberg and removed request for a team May 2, 2022 16:03
Comment thread .github/workflows/ci.yml
run: npm i react@${{ matrix.react }} react-dom@${{ matrix.react }}

# `@testing-library/react@13` dropped support for React 16 and 17 so to ensure that we run
# fine under React 18 we should upgrade it if we're testing React 18.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's annoying, good note though.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be better handled by a postinstall script? That way it works locally too?

Got the idea here: https://stackoverflow.com/a/60603000/659661

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm weary of putting it in a postinstall script because those run when you install the package from npm.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, TIL. I should probably learn more about npm...

@erunion
erunion merged commit 99e46eb into main May 2, 2022
@erunion
erunion deleted the feat/support-react-18 branch May 2, 2022 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants