{"id":24022372,"url":"https://github.com/jakeburden/example-react-styles","last_synced_at":"2025-04-05T21:33:47.500Z","repository":{"id":82806462,"uuid":"41649415","full_name":"jakeburden/example-react-styles","owner":"jakeburden","description":null,"archived":false,"fork":false,"pushed_at":"2015-08-31T01:40:09.000Z","size":112,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T13:59:17.041Z","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/jakeburden.png","metadata":{"files":{"readme":"readme.markdown","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-08-31T01:27:19.000Z","updated_at":"2015-08-31T01:40:09.000Z","dependencies_parsed_at":"2023-03-05T17:00:23.470Z","dependency_job_id":null,"html_url":"https://github.com/jakeburden/example-react-styles","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/jakeburden%2Fexample-react-styles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakeburden%2Fexample-react-styles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakeburden%2Fexample-react-styles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakeburden%2Fexample-react-styles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakeburden","download_url":"https://codeload.github.com/jakeburden/example-react-styles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247406076,"owners_count":20933803,"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":"2025-01-08T13:59:33.670Z","updated_at":"2025-04-05T21:33:47.476Z","avatar_url":"https://github.com/jakeburden.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# example-react-styles\n\nMinimal [react](https://facebook.github.io/react/) starter with [radium](http://projects.formidablelabs.com/radium/) for styles.\nUsing [reactify](https://npmjs.com/package/reactify) for jsx\nunder [browserify](http://browserify.org)/[watchify](https://npmjs.com/package/watchify)\nwith [npm run scripts](http://substack.net/task_automation_with_npm_run)\n\n\n# quick start\n\n```\n$ npm install\n$ npm run watch \u0026\n$ npm start\n```\n\n# commands\n\n* `npm run build` - build for production\n* `npm run watch` - automatically recompile during development\n* `npm start` - start a static development web server\n\n# styles.js\n``` js\nmodule.exports = {\n  even: {\n    color: 'blue'\n  },\n  odd: {\n    color: 'red'\n  },\n  flex: {\n    display: 'flex'\n  },\n  button: {\n    ':hover': {\n      cursor: 'pointer'\n    }\n  }\n}\n\n```\n\n# index.js\n\n``` js\nvar React = require('react')\nvar Radium = require('radium')\nvar styles = require('./styles')\n\nvar App = React.createClass({\n  getInitialState: function () {\n    return {\n      n: 0\n    }\n  },\n  handleClick: function () {\n    this.setState({\n      n: this.state.n + 1\n    })\n  },\n  render: function () {\n    return (\n      \u003cdiv\u003e\n        \u003ch1\u003eclicked\n          \u003cspan style={[this.state.n % 2 === 0 ?\n              styles.even :\n              styles.odd,\n              styles.flex\n            ]}\u003e{this.state.n}\u003c/span\u003e times\n        \u003c/h1\u003e\n        \u003cbutton\n          onClick={this.handleClick}\n          style={styles.button}\n        \u003eclick me!\u003c/button\u003e\n      \u003c/div\u003e\n    )\n  }\n})\nApp = Radium(App)\nReact.render(\u003cApp /\u003e, document.querySelector('#content'))\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakeburden%2Fexample-react-styles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakeburden%2Fexample-react-styles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakeburden%2Fexample-react-styles/lists"}