1

I would like to integrate react-table which is a React Component (can be seen in action here) in a Binding.scala application. I am however fairly new to both React and Binding.scala, and as such was wondering if there were any guides out there on how to proceed? Or if anyone has already done something similar?

PS: note that the gitter channel for Binding.scala specifically asks for general questions to be asked on here

1 Answer 1

1

I recently created some adapters for React and Binding.scala Interoperability. See https://github.com/Atry/ReactToBindingHtml.scala

The usage is basically as simple as import com.yang_bo.ReactToBindingHtml.Implicits._

import com.yang_bo.ReactToBindingHtml.Implicits._

val reactElement: ReactElement = ???
@html val realDom: Binding[Node] = {
  // real DOM fieldset element
  <fieldset>
    <legend>
      I am an `@html` literal that contains a React component
    </legend>
    { reactElement }
  </fieldset>
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.