Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question (for FAQ?) - ease of integration with e.g. jQuery or React #28

Open
nafg opened this issue Oct 21, 2016 · 5 comments
Open

Question (for FAQ?) - ease of integration with e.g. jQuery or React #28

nafg opened this issue Oct 21, 2016 · 5 comments

Comments

@nafg
Copy link

nafg commented Oct 21, 2016

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!

@Atry
Copy link
Collaborator

Atry commented Oct 22, 2016

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.

@Atry
Copy link
Collaborator

Atry commented Oct 22, 2016

Feel free to edit FAQ if you find anything that have to be specially taken care

@nafg
Copy link
Author

nafg commented Oct 25, 2016

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) [email protected]
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
#28 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGAUDGvs4hIYVSqYAl65DhsT87LpBsZks5q2X1OgaJpZM4Kdhvf
.

@Atry
Copy link
Collaborator

Atry commented Oct 26, 2016

I am always worried about integrating any framework with React. 😒

@nafg
Copy link
Author

nafg commented Oct 26, 2016

OK but if I am to use binding then I need instructions how to use it with React

Atry added a commit to Atry/Binding.scala that referenced this issue Jan 27, 2023
…plate/scalafmt-core-3.1.2

Update scalafmt-core to 3.1.2 in template
Atry pushed a commit that referenced this issue Jan 5, 2025
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants