This is a companion discussion topic for the original entry at https://thoughtbot.com/upcase/videos/intro-to-react
Thanks, that was a great introduction.
Very cool, Iāve been playing react for a few weeks and enjoying it more than angularās directives.
This is a decent tutorial for getting it up and running within rails. I havenāt looked at testing react components at all yet, anyone have experience there or resources?
The other very cool idea with react is flux.
I found that using Flux helped avoid having to use a top-level component that was effectively storing global state and then passing it down to grandchildren or great-grandchildren components. If you are passing props through more than one level of component to get them somewhere else (you have more than one component receiving the prop and passing it on without using it in rendering), thatās a code smell.
ReactDC did a comprehensive review of Flux implementations recently. Iām curious about giving more of them a try. Weāre using Marty.js at Cortex, and Iāve had a great experience with it. Itās under active development, has reasonable documentation, and the author is responsive to bug reports and suggestions.
Anyone else find it extremely easy to follow along with Chrisās videos?
very interesting indeed. I wonder if React.js is a replacement for Ember.js, or if both frameworks serve another purpose.
greetings,
Anthony
Excellent overview! Just what I needed. Are there any plans for a React trail? Iād love to see something on Vanilla React, Flux, Reflux, and React Native.
@imwithsam Thanks! Weāve started using React on more client apps and as our expertise grows I could see us producing more content. At a minimum I have a strong interest in React so I will likely end up doing a few more Weekly Iterations on it.
Iām definitely interested in a React Trail with react-rails, reflux and react-router. There is so much churn around Javascript right now. Iām having a difficult time deciding on ES6, webpack or plain rails assets, etc.
I think it would be great to do a Rails/React trail.
Iāve found Chris to be the best presenter on Upcase Iāve seen so far! You should do more videos
At 10:58, should it it be this.props.users rather than this.state.users, since we are not setting state anywhere rather than just passing props?
Iām actually going to take a gamble on React and learn it for a new clientās app. I would love to see how Thoughtbot approaches React! I would love a new Trail with React/Rails!
Me
Really looking forward to more in-depth videos on React
Iād be really interested in more videos around React. React+Rails maybe.
I would also love to see more React related videos/trial.
Been trying to get my head around React + Flux + Rails with not much luck. So I would find Flux/Rails explanations very useful.
React would be my top pick for a new trail. Everything I can find on the web only goes so far as to give a āHello Worldā level example when dealing with Rails. There is far too much that happens in the middle when building out a real application.
I would love to see the process of implementing React on a simple Rails crud app (preferably via React-Rails).
Iām with you on this idea. I love React and using Rails API gem to build isomorphic apps
Great intro to ReactJS @christoomey !
Iām starting to dabble with it by using the react-rails gem and have a few questions:
- When using ReactJS components, is there a way that we can use Rails helpers (like
link_to
) within JSX? - Similar to first question, Is it possible to use simple_form within components? Iām building all of my markup manually right now .
- How do we deal with ruby logic within a component? For example, what if you need to call a boolean ruby method on an object in a collection that is passed in as a prop. (i.e.
this.props.article.printed?
). - How would you recommend breaking down your react components into separate files? Some find it a bit painstaking to have to navigate over several partials when working with something they consider a single component (like a table for instance)?
- Do you know of any vim plugins that allow the use of
gf
on react component names?
Cheers!