react-instantsearch icon indicating copy to clipboard operation
react-instantsearch copied to clipboard

chore(examples): Update examples to React 18

Open FabienMotte opened this issue 2 years ago • 2 comments

Summary

This PR updates 11 examples to React 18 (hooks examples are already using React 18 and the 2 native examples stays on React 17 for now).

Result

This allows to run the examples from the monorepo. Two React versions were used before (React 17 for an example and React 18 at the root), resulting in an error when running an example.

This should also fix #3544: the next example is throwing an SSR error when using React 17 and Next.js >= 12.1.6-canary.15 in production. No more error using React 18.

FabienMotte avatar Jul 13 '22 12:07 FabienMotte

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 4588eff44b6a2252bf2f13cc3d7475bfba03e462:

Sandbox Source
algolia/create-instantsearch-app Configuration
hooks-example Configuration
react-instantsearch-next-1216-6u2c1w Issue #3544

codesandbox-ci[bot] avatar Jul 13 '22 12:07 codesandbox-ci[bot]

Deploy Preview for react-instantsearch ready!

Name Link
Latest commit 9ccadee03e1cf7d7851f5b2cb2cb0b3920df1043
Latest deploy log https://app.netlify.com/sites/react-instantsearch/deploys/62cebbe759875f0009a4b0d8
Deploy Preview https://deploy-preview-3560--react-instantsearch.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

netlify[bot] avatar Jul 13 '22 12:07 netlify[bot]

@FabienMotte We're in the process of moving algolia/react-instantsearch to our InstantSearch monorepo. This PR won't be transferrable, so I'll close it here, but please feel free to reopen it in algolia/instantsearch.js.

sarahdayan avatar Dec 22 '22 15:12 sarahdayan