Skip to content

Commit 0bbaf6c

Browse files
authored
docs(examples): update react examples (#1260)
* docs(examples): update react examples - react instantsearch hooks -> react instantsearch (changed dependency, used react 18) - react 18 -> react - react -> react 17 * update ignore * fix urls
1 parent d0b3b27 commit 0bbaf6c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+133
-698
lines changed

‎.eslintignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ dist
66
node_modules
77
examples/twitter-compose-with-typeahead
88
examples/slack-with-emojis-and-commands
9-
examples/react-instantsearch-hooks
9+
examples/react-instantsearch
1010
examples/vue-instantsearch
11-
examples/react-18
11+
examples/react

‎.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ dist/
1515

1616
# Environment files
1717
.env
18+
19+
!examples/*/.env
File renamed without changes.

‎examples/react-17/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SKIP_PREFLIGHT_CHECK=true
File renamed without changes.
File renamed without changes.

‎examples/react-renderer/package.json renamed to ‎examples/react-17/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@algolia/autocomplete-example-react-renderer",
3-
"description": "Autocomplete example with React Renderer",
2+
"name": "@algolia/autocomplete-example-react-17",
3+
"description": "Autocomplete example with React 17",
44
"version": "1.17.2",
55
"private": true,
66
"dependencies": {

‎examples/react-renderer/public/index.html renamed to ‎examples/react-17/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<link rel="icon" href="%PUBLIC_URL%/favicon.png" />
99
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
1010

11-
<title>React Renderer | Autocomplete</title>
11+
<title>React 17 | Autocomplete</title>
1212
</head>
1313
<body>
1414
<noscript>You need to enable JavaScript to run this app.</noscript>

0 commit comments

Comments
 (0)