Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Atry/react-binding
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry committed Feb 1, 2023
2 parents 70afb97 + 098d7e4 commit fc65229
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ This repository includes adapters for [React](https://reactjs.org/) / [Binding.s

## Motivation

The rendering process in React components are unpredictable, resulting in unnecessary reevaluation, and even worse, unexpected reevaluation of side effects if any. Precise data-binding in [Binding.scala](https://github.com/ThoughtWorksInc/Binding.scala) is a faster and predictable alternative to React's repeatedly re-rendering approach.
The rendering process in React components are unpredictable, resulting in unnecessary reevaluation, and even worse, unexpected reevaluation of side effects if any. Precise data-binding in [Binding.scala](https://github.com/ThoughtWorksInc/Binding.scala) is a fast and predictable alternative to React's repeatedly re-rendering approach.

However, currently there are more third-party components in the React ecosystem than Binding.scala. It would be nice if a web developer could reuse React components while take the advantage from Binding.scala's precise data-binding. This repository includes the following libraries to reuse React components in a Binding.scala + html.scala web app:
However, currently there are more third-party components in the React ecosystem than Binding.scala. It would be nice if a web developer could reuse React components while take the advantage from Binding.scala's precise data-binding. This repository includes the following adapters for reusing React components in Binding.scala + html.scala web apps:

- [ReactToBindingHtml](https://www.javadoc.io/page/com.yang-bo/reacttobindinghtml_sjs1_3/latest/com/yang_bo/ReactToBindingHtml.html) - an adapter for using a React component inside an [html.scala](https://github.com/Atry/html.scala) literal or interpolation.
- [BindingHtmlToReact](https://www.javadoc.io/page/com.yang-bo/bindinghtmltoreact_sjs1_3/latest/com/yang_bo/BindingHtmlToReact$.html) - an adapter for using an [html.scala](https://github.com/Atry/html.scala) literal or interpolation inside a React component.
Expand All @@ -15,6 +15,7 @@ However, currently there are more third-party components in the React ecosystem
## Getting Started

```sbt
// build.sbt
libraryDependencies ++= Seq(
"com.yang-bo" %%% "html" % (if (scalaBinaryVersion.value == "3") "3+" else "2+"),
"com.yang-bo" %%% "bindingreacttoreact" % "latest.release",
Expand Down Expand Up @@ -153,4 +154,4 @@ These adapters works with React types defined in [Slinky](https://slinky.dev/) b
- [html.scala](https://github.com/Atry/html.scala)
- [Slinky](https://slinky.dev/)
- [ScalablyTyped](https://scalablytyped.org)
- [scalajs-react](https://github.com/japgolly/scalajs-react)
- [scalajs-react](https://github.com/japgolly/scalajs-react)

0 comments on commit fc65229

Please sign in to comment.