{"id":15677551,"url":"https://github.com/knowler/react-router-wordpress-admin-plugin-demo","last_synced_at":"2025-08-14T11:35:28.229Z","repository":{"id":114063539,"uuid":"235291923","full_name":"knowler/react-router-wordpress-admin-plugin-demo","owner":"knowler","description":"A React Router in WordPress admin proof of concept plugin","archived":false,"fork":false,"pushed_at":"2020-01-21T08:46:23.000Z","size":115,"stargazers_count":13,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-07T00:47:44.085Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/knowler.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-21T08:36:23.000Z","updated_at":"2024-07-27T02:58:18.000Z","dependencies_parsed_at":"2023-04-18T03:05:00.439Z","dependency_job_id":null,"html_url":"https://github.com/knowler/react-router-wordpress-admin-plugin-demo","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/knowler%2Freact-router-wordpress-admin-plugin-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Freact-router-wordpress-admin-plugin-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Freact-router-wordpress-admin-plugin-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Freact-router-wordpress-admin-plugin-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knowler","download_url":"https://codeload.github.com/knowler/react-router-wordpress-admin-plugin-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252793576,"owners_count":21805055,"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-03T16:09:53.014Z","updated_at":"2025-05-07T00:48:00.066Z","avatar_url":"https://github.com/knowler.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Router in a WordPress Admin Plugin\n\nUsing a pattern like this for a plugin means that there is no\npage refresh between the subpages of your WordPress admin\nplugin.\n\nThe key is [React Portals](http://reactjs.org/docs/portals.html). \nWe can “take over” the WordPress admin menu for our plugin using\nthem and render our own “imposter” menu that is controlled by\n[React Router](https://reacttraining.com/react-router/web/).\n\n## Try it out\n\n```shell\n# Go to the plugins directory\n$ cd wp-content/plugins\n\n# Clone this repo\n$ git clone https://github.com/knowler/react-router-wordpress-admin-plugin-demo.git\n\n# Go to the plugin\n$ cd react-router-wordpress-admin-plugin-demo\n\n# Install Composer dependencies\n$ composer install\n\n# Install Node dependencies\n$ yarn\n\n# Build plugin assets\n$ yarn build\n\n# Activate the plugin\n$ wp plugin activate react-router-wordpress-admin-plugin-demo\n\n# Go to WordPress admin to see for yourself\n```\n\n## Optimizations\n\nThis is intended to a proof of concept. I’m know optimizations\ncould be made, but that wasn’t important for this demo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowler%2Freact-router-wordpress-admin-plugin-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknowler%2Freact-router-wordpress-admin-plugin-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowler%2Freact-router-wordpress-admin-plugin-demo/lists"}