{"id":16179853,"url":"https://github.com/bep/grouter","last_synced_at":"2025-03-19T01:31:01.440Z","repository":{"id":144202228,"uuid":"57375797","full_name":"bep/grouter","owner":"bep","description":"Highly Experimental React-Router Bindings for GopherJS","archived":false,"fork":false,"pushed_at":"2016-12-02T23:15:13.000Z","size":13,"stargazers_count":11,"open_issues_count":2,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-28T13:48:54.831Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/bep.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-29T10:09:58.000Z","updated_at":"2018-05-14T07:52:06.000Z","dependencies_parsed_at":"2023-06-18T06:15:36.058Z","dependency_job_id":null,"html_url":"https://github.com/bep/grouter","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/bep%2Fgrouter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Fgrouter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Fgrouter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bep%2Fgrouter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bep","download_url":"https://codeload.github.com/bep/grouter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243960361,"owners_count":20375102,"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-10T05:44:09.531Z","updated_at":"2025-03-19T01:31:01.435Z","avatar_url":"https://github.com/bep.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-react-router\n\n[![Build Status](https://travis-ci.org/bep/grouter.svg)](https://travis-ci.org/bep/grouter)\n[![GoDoc](https://godoc.org/github.com/bep/grouter?status.svg)](https://godoc.org/github.com/bep/grouter)\n\n\nReact-Router Bindings for GopherJS.\n\nWill need https://github.com/bep/gr to run.\n\nSee it in action here: [http://bego.io/goreact/examples/router/](http://bego.io/goreact/examples/router/)\n\nSee also:\n\n* https://github.com/reactjs/react-router\n* https://cdnjs.com/libraries/react-router\n\n## Example Setup\n\n```go\nvar (\n\tcomponent1   = gr.New(\u0026clickCounter{title: \"Counter 1\", color: \"#ff0066\"})\n\tcomponent2   = gr.New(\u0026clickCounter{title: \"Counter 2\", color: \"#339966\"})\n\tcomponent3   = gr.New(\u0026clickCounter{title: \"Counter 3\", color: \"#0099cc\"})\n\tcomponent3_2 = gr.New(\u0026clickCounter{title: \"Counter 3_2\", color: \"#ffcc66\"})\n\n\t// WithRouter makes this.props.router happen.\n\tappComponent = gr.New(new(app), gr.Apply(grouter.WithRouter))\n\n\trouter = grouter.New(\"/\", appComponent).With(\n\t\tgrouter.NewIndexRoute(grouter.Components{\"main\": component1}),\n\t\tgrouter.NewRoute(\"c1\", grouter.Components{\"main\": component1}),\n\t\tgrouter.NewRoute(\"c2\", grouter.Components{\"main\": component2}),\n\t\tgrouter.NewRoute(\"c3\", grouter.Components{\"main\": component3, \"sub\": component3_2}),\n\t)\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbep%2Fgrouter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbep%2Fgrouter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbep%2Fgrouter/lists"}