{"id":13401011,"url":"https://github.com/fritx/react-threejs","last_synced_at":"2025-03-16T20:31:36.783Z","repository":{"id":57148482,"uuid":"55355236","full_name":"fritx/react-threejs","owner":"fritx","description":"WIP: Simplest bindings between React \u0026 Three.js","archived":false,"fork":false,"pushed_at":"2019-11-02T05:04:40.000Z","size":2615,"stargazers_count":82,"open_issues_count":1,"forks_count":4,"subscribers_count":12,"default_branch":"dev","last_synced_at":"2025-02-27T13:23:42.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://fritx.github.io/react-threejs/example/","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/fritx.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}},"created_at":"2016-04-03T16:03:47.000Z","updated_at":"2024-09-10T13:48:26.000Z","dependencies_parsed_at":"2022-08-31T20:02:19.008Z","dependency_job_id":null,"html_url":"https://github.com/fritx/react-threejs","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/fritx%2Freact-threejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fritx%2Freact-threejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fritx%2Freact-threejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fritx%2Freact-threejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fritx","download_url":"https://codeload.github.com/fritx/react-threejs/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243830912,"owners_count":20354848,"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-07-30T19:00:57.846Z","updated_at":"2025-03-16T20:31:36.164Z","avatar_url":"https://github.com/fritx.png","language":"JavaScript","funding_links":[],"categories":["Utilities","Uncategorized","React [🔝](#readme)"],"sub_categories":["Framework bindings / integrations","Uncategorized"],"readme":"# react-threejs\n\nWIP: Simplest bindings between [React][react] \u0026 [Three.js][threejs]\n\nhttp://fritx.github.io/react-threejs/example/\n\nSee also: [vue-threejs](https://github.com/fritx/vue-threejs)\n\n\u003cimg width=\"400\" src=\"https://github.com/fritx/react-threejs/raw/dev/debugging.jpg\" /\u003e\n\n\n```js\nimport React, { Component } from 'react'\nimport { Renderer, Camera, Scene } from 'react-threejs'\n```\n\n```jsx\nrender () {\n  return (\u003cRenderer size={rendererSize}\u003e\n    \u003cCamera position={{ z: 5 }} /\u003e\n    \u003cScene\u003e\n      \u003cMyCube color={0x00ff00} rotation={rotation}\u003e\n        \u003cMyCube color={0xff0000} position={{ y: 2 }} /\u003e\n        \u003cMyCube color={0x0000ff} position={{ z: 3 }} /\u003e\n      \u003c/MyCube\u003e\n    \u003c/Scene\u003e\n  \u003c/Renderer\u003e)\n}\n```\n\n```jsx\n// setting FirstPersonControls, PositionalAudio \u0026 more\nrender () {\n  return (\u003cRenderer size={rendererSize}\u003e\n    \u003cScene\u003e\n      \u003cFirstPersonControls\u003e\n        \u003cAudioListener /\u003e\n        \u003cCamera /\u003e\n      \u003c/FirstPersonControls\u003e\n      \u003cMesh rotation={rotation} geometry={geometry} material={material}\u003e\n        \u003cPositionalAudio url=\"Project_Utopia.ogg\" /\u003e\n      \u003c/Mesh\u003e\n    \u003c/Scene\u003e\n  \u003c/Renderer\u003e)\n}\n```\n\n\n[react]: https://github.com/facebook/react\n[threejs]: https://github.com/mrdoob/three.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffritx%2Freact-threejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffritx%2Freact-threejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffritx%2Freact-threejs/lists"}