-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update react.md #514
Update react.md #514
Conversation
I had to modify `app/javascript/packs/application.js` to get this to work for me. I'm not sure if this was a recent update to the structure of shakapacker. I thought the documentation should be updated to help future readers.
WalkthroughThe changes involve updating the documentation for setting up a React application to reflect a new file structure. The entry point file has been changed from Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Outside diff range and nitpick comments (1)
docs/react.md (1)
270-270
: Bare URL Acceptable in NoteThe static analysis tool suggests avoiding bare URLs. While using a proper link format is generally recommended, the bare URL used in the note here is acceptable since it's providing additional information and not part of the main content.
Optionally, consider updating it to a link format for slightly improved readability:
Note that HMR will not work if you edit `app/javascript/packs/application.js` and experience a full refresh with a warning in the console. For more info on this, see [here](https://github.com/pmmmwh/react-refresh-webpack-plugin/issues/177).
However, this is a low priority nitpick and not a blocker.
Tools
Markdownlint
270-270: null
Bare URL used(MD034, no-bare-urls)
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- docs/react.md (3 hunks)
Additional context used
Markdownlint
docs/react.md
270-270: null
Bare URL used(MD034, no-bare-urls)
Additional comments not posted (3)
docs/react.md (3)
37-37
: LGTM!The change to the file path provides clarity to the documentation by reflecting the correct entry point for the React app.
155-155
: LGTM!This file path update is consistent with the previous change and ensures accuracy in the documentation.
Line range hint
155-164
: Code Looks Good!The code snippet follows React best practices, properly imports dependencies, and has a clean structure. Nice work!
Thanks @rianrainey! |
Summary
I had to modify
app/javascript/packs/application.js
to get this to work for me. I'm not sure if this was a recent update to the structure of shakapacker. I thought the documentation should be updated to help future readers.Pull Request checklist
- [ ] Add/update test to cover these changes- [ ] Update CHANGELOG fileOther Information
Summary by CodeRabbit