Open nafg opened 8 years ago
Binding.scala users should follow any instructions that you jQuery plugins required, the same as you manually create DOMs via DHTML API.
I used some bootstrap components like navbar
with Binding.scala. These components do not need any specifial instructions. Just insert it into DOM and it works.
Feel free to edit FAQ if you find anything that have to be specially taken care
That's good to know but I'm more worried about integrating with React. Any idea?
On Fri, Oct 21, 2016, 11:04 PM æšć (Yang Bo) notifications@github.com wrote:
Feel free to edit FAQ if you find anything that have to be specially taken care
â You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ThoughtWorksInc/Binding.scala/issues/28#issuecomment-255503657, or mute the thread https://github.com/notifications/unsubscribe-auth/AAGAUDGvs4hIYVSqYAl65DhsT87LpBsZks5q2X1OgaJpZM4Kdhvf .
I am always worried about integrating any framework with React. đ
OK but if I am to use binding then I need instructions how to use it with React
One of the biggest pain points with any new framework is, I need a widget that does X, someone already implemented X, can I use their widget?
For example, with React using jQuery plugins is tricky (see for example http://tech.oyster.com/using-react-and-jquery-together/)
Of course there are already the cross-language issues, e.g. with scala.js you have to write a facade, and until http://scala-lang.org/blog/2016/10/19/scalajs-bundler.html came along there were the issues with using npm modules.
If I could somehow use Binding.scala for the page but throw React components and jQuery plugins inside in places, and/or use Binding.scala inside a React component, it would be a much easier sell (to myself).
I'm guessing that would require lifecycle hooks (similar to using jQuery with React).
It would be nice to have instructions how to achieve this (or at least a FAQ saying it's not possible, if that's the case).
Thanks!