{"id":21113203,"url":"https://github.com/malpenzibo/review","last_synced_at":"2026-05-19T00:40:46.370Z","repository":{"id":41968066,"uuid":"431960295","full_name":"MalpenZibo/review","owner":"MalpenZibo","description":"Rust wasm library for building client web apps","archived":false,"fork":false,"pushed_at":"2022-10-22T15:41:06.000Z","size":2523,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T08:28:28.008Z","etag":null,"topics":["gui","rust","spa","wasm","web","webapp","webassembly"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/MalpenZibo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-11-25T19:46:43.000Z","updated_at":"2022-03-31T19:12:16.000Z","dependencies_parsed_at":"2022-08-12T00:50:57.920Z","dependency_job_id":null,"html_url":"https://github.com/MalpenZibo/review","commit_stats":null,"previous_names":["malpenzibo/bom"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalpenZibo%2Freview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalpenZibo%2Freview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalpenZibo%2Freview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalpenZibo%2Freview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MalpenZibo","download_url":"https://codeload.github.com/MalpenZibo/review/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243558484,"owners_count":20310574,"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":["gui","rust","spa","wasm","web","webapp","webassembly"],"created_at":"2024-11-20T01:40:04.725Z","updated_at":"2026-05-19T00:40:46.319Z","avatar_url":"https://github.com/MalpenZibo.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reView\n\n## About\nreView is a React-inspired library for didactic purposes written in Rust.\n\n\nThis project is inspired by a series of posts that explains how to build a React clone from scratch (https://github.com/pomber/didact). I liked the idea, so I tried to create a similar project using Rust.\nIn the process, I take inspiration for the component macro and the hook functionality from Yew (https://github.com/yewstack/yew).\n\n\u003e reView is not production-ready, and it's a WIP project so expect breaking changes between versions.\n\n## Documentations\n\nRead the [**reView Book**](https://malpenzibo.github.io/review)\n\nRead the [**reView Docs**](https://docs.rs/review/latest/review/)\n\n## Setup Environment\n\nIf you don't already have it installed, it's time to install Rust: \u003chttps://www.rust-lang.org/tools/install\u003e.\nThe rest of this guide assumes a typical Rust installation that contains both `rustup` and Cargo.\n\nTo compile Rust to WASM, we need to have the `wasm32-unknown-unknown` target installed.\nIf you don't already have it, install it with the following command:\n\n```bash\nrustup target add wasm32-unknown-unknown\n```\n\nNow that it's time to install: [Trunk](https://trunkrs.dev/).\n\nSimply run the following command to install it:\n\n```bash\ncargo install trunk wasm-bindgen-cli\n```\n\n## Start a new project\n\nTo create a project new project, you could use the standard template with `cargo generate`\n\nInstall [cargo-generate](https://github.com/cargo-generate/cargo-generate) by following their installation instructions, then run the following command:\n\n```bash\ncargo generate --git https://github.com/malpenzibo/review-template\n```\n\nThat's it!! You're ready to go!!\n\n## Simple counter\nNow you can create your first application. Inside the project remove all the style from `index.scss`. Then open the `app.rs` file and change the app function with the following code:\n\n```rust\n#[component(App)]\npub fn app() -\u003e VNode {\n    let (state, set_state) = use_state(0);\n\n    Div.with_children(children!(\n        format!(\"Current value {}\", state),\n        Button\n            .with_child(\"Increase counter\")\n            .with_event(OnClick, callback!(move || { set_state(*state + 1) }))\n    ))\n    .into()\n}\n```\n\nThat's it, a simple button that increments a counter :D\n\n## reView Example\nI implemented a simple Tic Tac Toe game like in the standard React tutorial https://reactjs.org/tutorial/tutorial.html\n\nPlay `reView Tic Tac Toe` here: https://malpenzibo.github.io/review/tictactoe\n\n![Tic Tac Toe](https://raw.githubusercontent.com/MalpenZibo/review/gh-pages/tictactoe/assets/tictactoe.gif)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalpenzibo%2Freview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalpenzibo%2Freview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalpenzibo%2Freview/lists"}