{"id":19014235,"url":"https://github.com/spritejs/sprite-react","last_synced_at":"2025-04-23T00:42:47.960Z","repository":{"id":87731669,"uuid":"149090315","full_name":"spritejs/sprite-react","owner":"spritejs","description":"Rendering spritejs elements with React.","archived":false,"fork":false,"pushed_at":"2022-01-18T02:23:55.000Z","size":462,"stargazers_count":24,"open_issues_count":6,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-29T20:32:53.656Z","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/spritejs.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":"2018-09-17T08:05:07.000Z","updated_at":"2024-08-02T20:11:31.000Z","dependencies_parsed_at":"2023-04-11T04:17:39.022Z","dependency_job_id":null,"html_url":"https://github.com/spritejs/sprite-react","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/spritejs%2Fsprite-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spritejs%2Fsprite-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spritejs%2Fsprite-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spritejs%2Fsprite-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spritejs","download_url":"https://codeload.github.com/spritejs/sprite-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249309155,"owners_count":21248745,"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-11-08T19:28:27.242Z","updated_at":"2025-04-23T00:42:47.954Z","avatar_url":"https://github.com/spritejs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sprite-React\n\nRender spritejs elements using [React](https://reactjs.org/)\n\n## Example\n\n```js\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport {Scene} from 'sprite-react';\n\nclass Block extends React.Component {\n  constructor(props) {\n    super(props);\n    this.state = {color: 'green'};\n  }\n\n  handleClick() {\n    this.setState({\n      color: 'blue',\n    });\n  }\n\n  render() {\n    return (\n      \u003csprite pos={[100, 100]} bgcolor={this.state.color} size={[50, 50]} onClick={this.handleClick.bind(this)}\u003e\u003c/sprite\u003e\n    );\n  }\n}\n\n\nReactDOM.render(\n  \u003cScene\u003e\n    \u003clayer id=\"fglayer\" handleEvent={true}\u003e\n      \u003cgroup\u003e\n        \u003csprite pos={[200, 100]} size={[50, 50]} bgcolor=\"red\" onClick={function () { this.attr('bgcolor', 'blue') } }\u003e\u003c/sprite\u003e\n        \u003cBlock/\u003e\n      \u003c/group\u003e\n    \u003c/layer\u003e\n  \u003c/Scene\u003e,\n  document.getElementById('app')\n);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspritejs%2Fsprite-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspritejs%2Fsprite-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspritejs%2Fsprite-react/lists"}