Comments (3)
Here's an example repo, that just tries to include react.js in the application.js file, as specified in the instructions:
https://github.com/xionon/react-test
from react-rails.
Is there a reason that the gem published to rubygems.org isn't tracking the master branch?
Because master has new features. The plan months ago was to get off of the "track React versions" path when server rendering and whatever helpers felt good, then call it 1.0. This hasn't gotten enough love to get there. I would love for it to (I'm looking for maintainers, let me know if you want to get more involved!)
#46 is closed and should not be reopened. < 1.0 doesn't include react_ujs so it won't be found.
As to why react could not be found, 0.x does not provide any defaults for the variant of react. You must specify config.react.variant
. If I do that in your example app, it works. Looking at the readme in the 0.11 branch, that doesn't seem as clear as I remember it. Master defaults to using the version matching your environment (which is a nice detail) - https://github.com/reactjs/react-rails/blob/master/lib/react/rails/railtie.rb#L9
from react-rails.
Ahhhh, duh. I've been working off master so long, I forgot I had to specify
the variant. Sorry!
On Fri, Aug 1, 2014 at 1:02 AM, Paul O’Shannessy [email protected]
wrote:
Is there a reason that the gem published to rubygems.org isn't tracking
the master branch?Because master has new features. The plan months ago was to get off of the
"track React versions" path when server rendering and whatever helpers felt
good, then call it 1.0. This hasn't gotten enough love to get there. I
would love for it to (I'm looking for maintainers, let me know if you want
to get more involved!)#46 #46 is closed and
should not be reopened. < 1.0 doesn't include react_ujs so it won't be
found.As to why react could not be found, 0.x does not provide any defaults for
the variant of react. You must specify config.react.variant. If I do that
in your example app, it works. Looking at the readme in the 0.11 branch,
that doesn't seem as clear as I remember it. Master defaults to using the
version matching your environment (which is a nice detail) -
https://github.com/reactjs/react-rails/blob/master/lib/react/rails/railtie.rb#L9—
Reply to this email directly or view it on GitHub
#71 (comment).
from react-rails.
Related Issues (20)
- `ReactDOM.version?.split` not transpiled? HOT 3
- Can't resolve 'react-dom/client' HOT 3
- Import react_component but it' shown HOT 2
- compare/contrast and migration steps to react_on_rails HOT 5
- Component doesn't render on jsbundling-rails webpacker HOT 5
- Component not loading in rails app HOT 5
- react-rails v3.1.0 is broken HOT 1
- server_rendering.js not found following README HOT 8
- Re-organize documentations in docs folder
- server_rendering.js not found following README HOT 1
- How do I handle styling?
- esbuild HOT 1
- Error related to server_rendering.js not found with SSR HOT 3
- Setup StrictMode for components HOT 2
- get started docs r-r version HOT 1
- Rails 7.1 Renders Partial Header HOT 1
- Server side rendering `window` behaves differently than Node.js? HOT 4
- Issues with Loading React Component for Cuprite in Rails 7.1
- Hooks not working due to Invalid Hook Call HOT 2
- Move react_ujs to es module flow
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-rails.