6.8k sao GitHub và vẫn tăng — reactjs/react-rails là dự án JavaScript mà TopGit đang theo dõi trên nền tảng. Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
For version 2.7 documentation, visit the 2.7-stable branch.
Summary
React-Rails is a flexible tool to use React with Rails. The benefits:
Automatically renders React server-side and client-side
Supports Shakapacker v7
Supports Propshaft
Supports Sprockets 4.x, 3.x
Lets you use JSX, ES6, TypeScript, CoffeeScript
While ShakaCode will continue to support this gem, you might consider migrating to React on Rails or React on Rails Pro with proper Node rendering.
Why? React on Rails code receives much more active development and testing. For example, consider the ReactRailsUJS implementation compared to the ReactOnRails Node package which is written in TypeScript. For another example, React on Rails has work underway to support the latest React features, such as React Server Components.
You can find migration to React on Rails steps here.
For the fastest path, try the LLM-assisted migration prompt.
ShakaCode Support
ShakaCode focuses on helping Ruby on Rails teams use React and Webpack better. We can upgrade your project and improve your development and customer experiences, allowing you to focus on building new features or fixing bugs instead.
For an overview of working with us, see our Client Engagement Model article and how we bill for time.
We also specialize in helping development teams lower infrastructure and CI costs. Check out our project Control Plane Flow, which can allow you to get the ease of Heroku with the power of Kubernetes and big cost savings.
If you think ShakaCode can help your project, click here to book a call with Justin Gordon, the creator of React on Rails and Shakapacker.
Here's a testimonial of how ShakaCode can help from Florian Gößler of Blinkist, January 2, 2023:
Hey Justin 👋
I just wanted to let you know that we today shipped the webpacker to shakapacker upgrades and it all seems to be running smoothly! Thanks again for all your support and your teams work! 😍
On top of your work, it was now also very easy for me to upgrade Tailwind and include our external node_module based web component library which we were using for our other (more modern) apps already. That work is going to be shipped later this week though as we are polishing the last bits of it. 😉
Have a great 2023 and maybe we get to work together again later in the year! 🙌
Read the full review here.
Resources
Click to join React + Rails Slack. Then join the channel #react-rails.
If upgrading, consider migrating to the react_on_rails gem.
Source code example utilizing React-Rails: https://github.com/BookOfGreg/react-rails-example-app
Documentation
Get started
Use with Shakapacker
Component name
File naming
Typescript support
Test component
Use with Asset Pipeline
Custom JSX Transformer
Transform Plugin Options
React.js versions
View Helper
Custom View Helper
UJS
Mounting & Unmounting
Event Handling
getConstructor
Server-Side Rendering
Configuration
JavaScript State
Custom Server Renderer
Controller Actions
Component Generator
Use with JBuilder
Camelize Props
Changing Component Templates
Upgrading
2.7 to 3.0
2.3 to 2.4
Migrating from react-rails to react_on_rails
Why migrate?
Steps to migrate
Common Errors
Getting warning for Can't resolve 'react-dom/client' in React < 18
Undefined Set
Using TheRubyRacer
HMR
Tests in component directory
After reading this README file, additional information about React-Rails can be found on the Wiki page:
https://github.com/reactjs/React-Rails/wiki
The Wiki page features a significant amount of additional information about React-Rails, including instructional articles and answers to the most frequently asked questions.
Related Projects
react_on_rails: Integration of React with Rails utilizing Webpack, Redux, React-Router.
React on Rails Pro:React on Rails with Node rendering and many other performance enhancements.
react-rails-benchmark_renderer adds performance instrumentation to server rendering.
Ruby Hyperstack: Use Ruby to build reactive user interfaces with React.
Contributing
🎉 Thanks for taking the time to contribute! 🎉 See CONTRIBUTING.md for more details.
Supporters
The following companies provide licenses to the ShakaCode team, supporting the development of this and other open-source projects maintained by ShakaCode. ShakaCode stands by the usefulness of these products!
reactjs/react-rails thuộc nhóm Backend trên TopGit, cùng 7 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về reactjs/react-rails ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/reactjs/react-rails là nguồn chính thức.
reactjs/react-rails có phải mã nguồn mở không?
Có — reactjs/react-rails phát hành theo license Apache-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/reactjs/react-rails.
reactjs/react-rails có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho reactjs/react-rails. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
reactjs/react-rails dùng license gì?
reactjs/react-rails phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
reactjs/react-rails là gì?
reactjs/react-rails (reactjs/react-rails) là dự án JavaScript trên GitHub. Theo mô tả gốc: Integrate React.js with Rails views and controllers, the asset pipeline, or webpacker.
Vì sao reactjs/react-rails được xếp vào nhóm Backend?
TopGit xếp reactjs/react-rails vào nhóm Backend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "jsx", "rails", "react"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.