Firstly, thanks for a very good and clever integration with Rails.
An idea though, why not piggyback on some of the established starter kits, e.g. https://github.com/coryhouse/react-slingshot/
Either fully implementing react-slingshot OR make the integration so thin that it would be easy to plug-and-play a starter kit of choice?
@hundsim What's to prevent you from using that? You just put what you need in the /client directory of your rails project, right?
Can you create a sample project and push to github so I can have a better idea of what you are suggesting?
@hundsim Any update?
@hundsim I think if you're thinking about the generator, we wouldn't want to do that as it would add a lot of complexity. CC: @jbhatab.
@hundsim I think we could talk to their team to see if they want to just have their starter kit use our gem, but our generator kinda does this already in terms of getting you up and running.
I'll message them to see but I think just keeping our generator on our gem and their starter kit as their starter kit makes the most sense.
Also we have an example app already built with react_on_rails. http://www.reactrails.com/
I guess I was pondering about potential benefits of a slightly more modular structure of the gem, where one in a snap could swap in another react starter-kit - perhaps extracting the boilerplate code to another gem?
There's nothing wrong with your defaults, quite the contrary. But seeing how progressive the react-landscape is - perhaps the maintenance of react_on_rails would be easier and more future-proof if the rails-integration and the react implementation wouldn't be so tightly bundled?
@hundsim Oh I get where you are going with it. Yeah we discussed just making this into just a webpack integration with no connection to the concept of react at all.
We concluded that the initial default generator is so simple though that just deleting a few files abstracts it from react completely. Although having some options that instantly setup a variety of best practices is interesting, but would probably be hard to maintain in context to our generator. Maybe just a simple link to their start kit and saying look here for best practices would work?
I'm open to the idea of modularizing this gem if it's something you'd want to spearhead, but at this point I don't see it as something major enough worth pursuing.
I say close this issue for now. Agree?
I think it's fine to close, but we can keep talking to separately to
discuss ideas.
On Aug 1, 2016 12:05 AM, "Justin Gordon" [email protected] wrote:
I say close this issue for now. Agree?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/shakacode/react_on_rails/issues/488#issuecomment-236504745,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACWEXiJjh9SxaggBHeH0DrcJ8FYHPWCHks5qbZq-gaJpZM4JUJQB
.