{"id":16124305,"url":"https://github.com/jongacnik/monoapp-react","last_synced_at":"2025-03-18T12:31:39.427Z","repository":{"id":57302511,"uuid":"157147852","full_name":"jongacnik/monoapp-react","owner":"jongacnik","description":"monoapp plugin to use React as a view layer","archived":false,"fork":false,"pushed_at":"2018-11-19T20:12:42.000Z","size":5,"stargazers_count":11,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T09:21:05.415Z","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/jongacnik.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":"2018-11-12T02:52:44.000Z","updated_at":"2023-09-18T08:59:53.000Z","dependencies_parsed_at":"2022-09-20T16:52:19.789Z","dependency_job_id":null,"html_url":"https://github.com/jongacnik/monoapp-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/jongacnik%2Fmonoapp-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Fmonoapp-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Fmonoapp-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jongacnik%2Fmonoapp-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jongacnik","download_url":"https://codeload.github.com/jongacnik/monoapp-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243926065,"owners_count":20369911,"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-09T21:20:31.332Z","updated_at":"2025-03-18T12:31:39.123Z","avatar_url":"https://github.com/jongacnik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# monoapp-react\n\n[monoapp](https://github.com/jongacnik/monoapp) plugin to use [React](https://github.com/facebook/react) as a view layer\n\n## Example\n\n```js\nvar monoapp = require('monoapp')\nvar withReact = require('monoapp-react')\n\nvar app = monoapp()\n\napp.use(withReact)\napp.route('/', view)\napp.mount('#app')\n\nfunction MyComponent () {\n  return \u003cdiv\u003eHello World\u003c/div\u003e\n}\n\nfunction view (state, emit) {\n  return (\n    \u003cmain\u003e\n      \u003cMyComponent /\u003e\n    \u003c/main\u003e\n  ) \n}\n```\n\n## Component\n\nAn instance of `React.Component` extended with `monoapp` state and emit is included:\n\n```js\nvar { Component } = require('monoapp-react')\n\nclass MyComponent extends Component {\n  render () {\n    console.log(this.global)\n    console.log(this.emit)\n    \n    return \u003cdiv\u003eHello World\u003c/div\u003e\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongacnik%2Fmonoapp-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjongacnik%2Fmonoapp-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjongacnik%2Fmonoapp-react/lists"}