docs(getting-started): restore the React getting started, modernized - #770
Merged
Merged
Conversation
The React getting started pages were removed in 2e439ab because they were outdated, which left /sdk/js/7/getting-started/react/* answering a 404 to every inbound link (#590). They are restored here, rewritten against a current stack: - Vite instead of create-react-app, Node 20 instead of Node 8 - function components and hooks instead of class components - Redux Toolkit instead of hand-written actions/reducers + redux-saga - the realtime subscription is opened before the history is fetched and is closed on unmount, so no message is lost and Strict Mode does not leak a room Snippets are plain files, like the node-js and raw-web pages, instead of symlinks into a full CRA application with its own Cypress suite. react-native is deliberately left out. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Merged
Contributor
|
🎉 This PR is included in version 7.18.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Merged
Contributor
|
🎉 This PR is included in version 7.18.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes kuzzleio/documentation#590.
Context
/sdk/js/7/getting-started/react/standaloneand/sdk/js/7/getting-started/react/with-reduxhave been 404ing since 2e439ab ("remove Getting started since they are all outdated", Aug 2023). Nothing in the docs links to them anymore, but external links still do — hence the issue.What this does
Restores the two React pages, rewritten against a current stack rather than reinstated as they were:
create-react-app, Node 20 instead of Node 8createSlice/createAsyncThunk) instead of hand-written action types, switch reducers andredux-sagaSnippets are plain files, like the existing
node-jsandraw-webpages, instead of symlinks into a full CRA app carrying its own Cypress suite. The.react/and.react-native/fixture apps and the.ci/test-docs.shjob are not restored.react-nativeis deliberately left out: Expo has moved far enough that it needs its own rewrite, not a port.Verification
Built locally with the framework repo (
vuepress build srcwith onlysdk-javascript-7installed — there is no doc build in PR CI):<<<snippets inline correctly🤖 Generated with Claude Code