{"id":14977639,"url":"https://github.com/shogowada/scalajs-reactjs","last_synced_at":"2025-10-28T04:31:54.413Z","repository":{"id":54548375,"uuid":"69794250","full_name":"shogowada/scalajs-reactjs","owner":"shogowada","description":"Scala.js facade for react, react-router, and react-redux","archived":false,"fork":false,"pushed_at":"2021-02-10T12:34:15.000Z","size":321,"stargazers_count":28,"open_issues_count":0,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-29T00:20:34.451Z","etag":null,"topics":["react","react-redux","react-router","redux","scala","scalajs"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shogowada.png","metadata":{"files":{"readme":"README.md","changelog":"history/src/main/scala/io/github/shogowada/scalajs/history/History.scala","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-02T11:43:29.000Z","updated_at":"2022-10-08T14:26:31.000Z","dependencies_parsed_at":"2022-08-13T19:20:34.049Z","dependency_job_id":null,"html_url":"https://github.com/shogowada/scalajs-reactjs","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shogowada%2Fscalajs-reactjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shogowada%2Fscalajs-reactjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shogowada%2Fscalajs-reactjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shogowada%2Fscalajs-reactjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shogowada","download_url":"https://codeload.github.com/shogowada/scalajs-reactjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219860180,"owners_count":16556026,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react","react-redux","react-router","redux","scala","scalajs"],"created_at":"2024-09-24T13:56:03.156Z","updated_at":"2025-10-28T04:31:48.472Z","avatar_url":"https://github.com/shogowada.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scalajs-reactjs\n\n**⚠️ This project is not maintained anymore, and I'm looking for a kind person who can take it over from me.**\n**If you can inherit this project, please send a pull request to this README.md linking to your project so that we can direct people to the new home.**\n\nFurther maintenance of the repo can be found here:\n* [scommons/scalajs-reactjs](https://github.com/scommons/scalajs-reactjs)\n\n[![Build Status](https://travis-ci.org/shogowada/scalajs-reactjs.svg?branch=master)](https://travis-ci.org/shogowada/scalajs-reactjs)\n\nDevelop React applications with Scala. It is compatible with Scala 2.12 and Scala.js 0.6.14.\n\nOptionally include react-router and react-redux facades, too.\n\n## Quick Look\n\n```scala\nimport io.github.shogowada.scalajs.reactjs.VirtualDOM._\nimport io.github.shogowada.scalajs.reactjs.{React, ReactDOM}\nimport org.scalajs.dom\n\ncase class WrappedProps(name: String)\n\nval reactClass = React.createClass[WrappedProps, Unit](\n  (self) =\u003e \u003c.div(^.id := \"hello-world\")(s\"Hello, ${self.props.wrapped.name}!\")\n)\n\nval mountNode = dom.document.getElementById(\"mount-node\")\nReactDOM.render(\u003c(reactClass)(^.wrapped := WrappedProps(\"World\"))(), mountNode)\n```\n\nYou can also directly render without creating a React class:\n\n```scala\nimport io.github.shogowada.scalajs.reactjs.ReactDOM\nimport io.github.shogowada.scalajs.reactjs.VirtualDOM._\nimport org.scalajs.dom\n\nval mountNode = dom.document.getElementById(\"mount-node\")\nReactDOM.render(\u003c.div(^.id := \"hello-world\")(\"Hello, World!\"), mountNode)\n```\n\n## How to Use\n\n1. Apply [scalajs-bundler](https://scalacenter.github.io/scalajs-bundler/getting-started.html) plugin.\n2. Depend on the libraries.\n   ```\n   libraryDependencies ++= Seq(\n     \"io.github.shogowada\" %%% \"scalajs-reactjs\" % \"0.14.0\", // For react facade\n     \"io.github.shogowada\" %%% \"scalajs-reactjs-router-dom\" % \"0.14.0\", // Optional. For react-router-dom facade\n     \"io.github.shogowada\" %%% \"scalajs-reactjs-router-redux\" % \"0.14.0\", // Optional. For react-router-redux facade\n     \"io.github.shogowada\" %%% \"scalajs-reactjs-redux\" % \"0.14.0\", // Optional. For react-redux facade\n     \"io.github.shogowada\" %%% \"scalajs-reactjs-redux-devtools\" % \"0.14.0\" // Optional. For redux-devtools facade\n   )\n   ```\n\n## Examples\n\n- [Basics](/example)\n- [TODO App](/example/todo-app/src/main/scala/io/github/shogowada/scalajs/reactjs/example/todoapp/Main.scala)\n- [Router](/example/routing/src/main/scala/io/github/shogowada/scalajs/reactjs/example/router/Main.scala)\n- [Redux](/example/todo-app-redux/src/main/scala/io/github/shogowada/scalajs/reactjs/example/todoappredux)\n- [Redux Middleware](/example/redux-middleware/src/main/scala/io/github/shogowada/scalajs/reactjs/example/redux/middleware/Main.scala)\n- [Router Redux](/example/router-redux/src/main/scala/io/github/shogowada/scalajs/reactjs/example/router/redux/Main.scala)\n- [Redux DevTools](/example/redux-devtools/src/main/scala/io/github/shogowada/scalajs/reactjs/example/redux/devtools/Main.scala)\n- [I don't like `\u003c` and `^`. How can I change them?](/example/custom-virtual-dom)\n\n## Reusable Components\n\n- [ReactCrop](https://github.com/shogowada/scalajs-reactjs-image-crop): Crop an image\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshogowada%2Fscalajs-reactjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshogowada%2Fscalajs-reactjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshogowada%2Fscalajs-reactjs/lists"}