rsnext/examples/with-algolia-react-instantsearch
Nick Babcock 5629223407
Update examples to use React 17 (#26133)
[With next 11 requiring react 17](https://nextjs.org/blog/next-11#upgrade-guide), most of the examples
need to be updated, so the following snippet updated all the examples to
a compatible react version.

```bash
cd examples/
fd -g 'package.json' | xargs sed -r -i 's/"react": ".*"/"react": "^17.0.2"/
fd -g 'package.json' | xargs sed -r -i 's/"react-dom": ".*"/"react-dom": "^17.0.2"/'

# exclude experimental react version
git checkout with-reason-relay/package.json
```
2021-06-16 16:43:26 +00:00
..
components Update Algolia's Instant Search Example (#14233) 2020-06-18 19:23:02 -05:00
pages Update Algolia's Instant Search Example (#14233) 2020-06-18 19:23:02 -05:00
public Updated multiple examples to use /public (#9033) 2019-10-11 11:50:06 +02:00
.gitignore Added .gitignore to examples that are deployed to vercel (#15127) 2020-07-16 10:52:23 -04:00
next.config.js Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
package.json Update examples to use React 17 (#26133) 2021-06-16 16:43:26 +00:00
README.md Fix deploy buttons URLs (#20834) 2021-01-07 01:40:29 +00:00

With Algolia React InstantSearch example

The goal of this example is to illustrate how you can use Algolia React InstantSearch to perform your search in an application developed with Next.js. It also illustrates how you can keep in sync the Url with the search.

How to use

Execute create-next-app with npm or Yarn to bootstrap the example:

npx create-next-app --example with-algolia-react-instantsearch with-algolia-react-instantsearch-app
# or
yarn create next-app --example with-algolia-react-instantsearch with-algolia-react-instantsearch-app

To set up Algolia:

Deploy it to the cloud with Vercel (Documentation).