{"id":15718191,"url":"https://github.com/unstubbable/hops-enhance-element","last_synced_at":"2026-05-01T15:32:36.505Z","repository":{"id":66168756,"uuid":"116054550","full_name":"unstubbable/hops-enhance-element","owner":"unstubbable","description":"Hops example project with a custom enhanceElement context method","archived":false,"fork":false,"pushed_at":"2018-01-04T13:46:39.000Z","size":100,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-30T22:25:37.849Z","etag":null,"topics":["hops","mixins","reactrouter","redux"],"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/unstubbable.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-01-02T20:32:54.000Z","updated_at":"2018-01-03T08:23:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"38ecf819-494b-4fe2-9273-aca3d8313b5d","html_url":"https://github.com/unstubbable/hops-enhance-element","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/unstubbable/hops-enhance-element","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unstubbable%2Fhops-enhance-element","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unstubbable%2Fhops-enhance-element/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unstubbable%2Fhops-enhance-element/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unstubbable%2Fhops-enhance-element/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unstubbable","download_url":"https://codeload.github.com/unstubbable/hops-enhance-element/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unstubbable%2Fhops-enhance-element/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32503118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hops","mixins","reactrouter","redux"],"created_at":"2024-10-03T21:52:25.061Z","updated_at":"2026-05-01T15:32:36.483Z","avatar_url":"https://github.com/unstubbable.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hops Template React\n\n[![npm](https://img.shields.io/npm/v/hops-template-react.svg)](https://www.npmjs.com/package/hops-template-react)\n\nThis is a small example application showing [hops](https://github.com/xing/hops) in action.\nIt demonstrates how to use hops with React, Redux, Flow and Jest.\n\nIt has the following folder structure:\n\n```\n├── flow-typed\n├── node_modules\n├── package.json\n├── readme.md\n└── src\n    ├── app.js\n    ├── counter\n    │   ├── actions.js\n    │   ├── constants.js\n    │   ├── counterContainer.js\n    │   ├── counter.js\n    │   ├── index.js\n    │   ├── reducer.js\n    │   └── spec\n    │       ├── actions.spec.js\n    │       ├── counterContainer.spec.js\n    │       ├── counter.spec.js\n    │       ├── reducer.spec.js\n    │       └── __snapshots__\n    │           ├── counterContainer.spec.js.snap\n    │           └── counter.spec.js.snap\n    ├── home\n    │   ├── home.js\n    │   ├── index.js\n    │   ├── spec\n    │   │   ├── home.spec.js\n    │   │   └── __snapshots__\n    │   │       └── home.spec.js.snap\n    │   └── styles.css\n    └── reducers.js\n```\n\nThis example uses `hops-react` to render in the browser or on the server via the same entry file `src/app.js`.\n\nIt contains a small example of the `react-router` with two routes: `/` (home) and `/counter`.\n\nYou can customize it to your needs - or use it as a reference guide when creating your own hops react project.\n\n\n## Package.json scripts\n\n### `npm start` / `yarn start`\n\nThis command can be used to start a development server with hot-code reloading or to start a production server.\n\n* starting a development server: `npm start`\n* starting a production server: `npm start --production`\n\nBefore you start a production server you need to build your JS bundle files.\n\n\n### `npm run build` / `yarn build`\n\nThis command will generate the browser and server bundles that are required for deploying your code or running the production server through `npm start --production`.\n\nIt can also be used to statically build HTML pages for all `locations` that are configured in the `\"config\"` section of the `package.json`.\n\nIn this scenario it will iterate through the `locations` and render each location to a HTML document that will be placed in the `build/` folder.\n\nTo make use of this execute `npm run build -- --static` or `yarn build --static`.\n\n\n### `npm test` / `yarn test`\n\nThis command will test your code with [jest](https://facebook.github.io/jest/) a testrunner by facebook that integrates nicely with react.\n\n\n### `npm run flow` / `yarn flow`\n\nThis command will run flow to typecheck your code and warn you about errors early on.\n\n\n### (`postinstall`)\n\nThis script isn't really meant to be executed by the user. Instead it will run every time that you install the project or a new dependency and download the latest type definitions from [flow-typed](https://github.com/flowtype/flow-typed) for all of your dependencies.\n\n\n## Configuration\n\nPlease refer to [hops-config](https://github.com/xing/hops/tree/master/packages/config) to see a list of all supported options.\n\nIn this project we configure `babel` and `postcss` through the `\"browsers\"` field and we specify two loctions `/` and `/counter` through the `\"locations\"` hash.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funstubbable%2Fhops-enhance-element","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funstubbable%2Fhops-enhance-element","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funstubbable%2Fhops-enhance-element/lists"}