{"id":16661069,"url":"https://github.com/agrafix/elm-react","last_synced_at":"2025-04-09T18:51:40.391Z","repository":{"id":66320081,"uuid":"48332296","full_name":"agrafix/elm-react","owner":"agrafix","description":"React bindings for Elm","archived":false,"fork":false,"pushed_at":"2015-12-20T18:43:54.000Z","size":151,"stargazers_count":25,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T15:46:21.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/agrafix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-20T18:26:49.000Z","updated_at":"2019-02-11T14:59:17.000Z","dependencies_parsed_at":"2023-03-20T15:33:45.655Z","dependency_job_id":null,"html_url":"https://github.com/agrafix/elm-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrafix%2Felm-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrafix%2Felm-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrafix%2Felm-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrafix%2Felm-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agrafix","download_url":"https://codeload.github.com/agrafix/elm-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248092550,"owners_count":21046493,"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":[],"created_at":"2024-10-12T10:33:22.651Z","updated_at":"2025-04-09T18:51:40.360Z","avatar_url":"https://github.com/agrafix.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elm-react\n\nThis is currently only a proof of concept: Build [React][react] applications using [Elm][elm]. This works better than I expected. The whole thing currently runs on `react 0.14.3` and `elm 0.16`.\n\n## What's included?\n\nCurrently this elm packages includes a mixture of something like [start-app][start-app] and [elm-html][elm-html], but instead of relying on `virtual-dom` the whole thing is built using `react`. Currently react components are used for the view part, and state is handled outside as suggested in [the Elm Architecture][elm-arch].\n\n## Tutorial / Example\n\nExample react component:\n\n```elm\ntestComp : R.Comp Action Model\ntestComp =\n    R.createClass\n    { name = \"TestComp\"\n    , render = \\p -\u003e\n        R.html \"div\" []\n        [ R.text \u003c| \"Countervalue: \" ++ toString p.model.counter\n        , R.html \"button\"\n            [ R.EventAttribute \"onClick\" (Signal.message p.address Increment)\n            ]\n            [ R.text \"Increment\"\n            ]\n        ]\n    }\n```\n\nTo see how everything works in detail, check out the `example` folder and the `make-example.sh` script to build it.\n\n## Next steps\n\n* Support more react life-cycle events like `componentDidMount` and `componentWillUnmount` to support hooking 3rd Party libs like `leaflet`\n* Support for transitions\n* Define helper functions for html nodes and attributes\n* Figure out if there's a way to avoid the 'external div' hack\n* I'm not sure how everything will integrate with [the Elm Architecture][elm-arch]. From the first point of view it seems to go very well, but I have not explored it in depth yet.\n* Split into two packages: `elm-react` and `react-start-app`\n* Split out the DOM parts to allow building apps with `react-native`\n\n## Contributing / Helping / Hacking\n\nIf you like to help, please open an issue about what you will do and send a pull request when finished! Code should be written in a consistent style throughout the project. Avoid whitespace that is sensible to conflicts. Note that by sending a pull request you agree that your contribution can be released under the BSD3 License as part of the `elm-react` package or any related packages.\n\n### Building the library\n\n```bash\n$ npm install\n$ ./rebuild.sh\n$ elm make\n```\n\n[react]: https://facebook.github.io\n[elm]: http://elm-lang.org/\n[start-app]: https://github.com/evancz/start-app\n[elm-html]: https://github.com/evancz/elm-html\n[elm-arch]: https://github.com/evancz/elm-architecture-tutorial/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrafix%2Felm-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagrafix%2Felm-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrafix%2Felm-react/lists"}