{"id":20776816,"url":"https://github.com/avocode/reactmemory","last_synced_at":"2026-03-01T14:02:41.451Z","repository":{"id":42775875,"uuid":"275823010","full_name":"avocode/reactmemory","owner":"avocode","description":"ReactMemory.render(\u003cApp /\u003e, ReactMemory.createRoot())","archived":false,"fork":false,"pushed_at":"2023-01-06T10:16:06.000Z","size":262,"stargazers_count":2,"open_issues_count":6,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-30T18:11:29.520Z","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/avocode.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":"2020-06-29T13:27:42.000Z","updated_at":"2020-06-29T15:29:42.000Z","dependencies_parsed_at":"2023-02-05T20:46:57.444Z","dependency_job_id":null,"html_url":"https://github.com/avocode/reactmemory","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/avocode/reactmemory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avocode%2Freactmemory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avocode%2Freactmemory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avocode%2Freactmemory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avocode%2Freactmemory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avocode","download_url":"https://codeload.github.com/avocode/reactmemory/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avocode%2Freactmemory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29970543,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T13:32:00.443Z","status":"ssl_error","status_checked_at":"2026-03-01T13:32:00.084Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-17T13:12:02.624Z","updated_at":"2026-03-01T14:02:41.429Z","avatar_url":"https://github.com/avocode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReactMemory\n\nReact renderer which **works without DOM** and **does not render anything** anywhere\n\n## Motivation\n\nSince React components encapsulate logic nicely and compose seamlessly, it starts being a pain to write headless (DOM-less) runtimes without it. This renderer allows writing general application logic (Node.js apps, Electron main process) as React components with JSX used for composition.\n\n## Example\n\n```js\nfunction App({ process }) {\n  useEffect(() =\u003e {\n    console.log('App started')\n    return () =\u003e {\n      console.log('App terminated')\n    }\n  }, [])\n\n  return (\n    \u003c\u003e\n      \u003cServer port={process.env['PORT']} /\u003e\n    \u003c/\u003e\n  )\n}\n\nfunction Server({ port }) {\n  useEffect(() =\u003e {\n    const server = http.createServer()\n    server.listen(port)\n    console.log(`Server starting on port ${port}`)\n\n    return () =\u003e {\n      server.close()\n      console.log('Server stopped')\n    }\n  }, [port])\n\n  return null\n}\n\nReactMemory.render(\n  \u003cApp /\u003e,\n  ReactMemory.createRoot()\n)\n```\n\n## What Is Supported\n\n- class and functional components\n- fragments\n- hooks\n- mounting (the full lifecycle)\n- rerendering of the root\n- multiple root nodes\n\n### What Is NOT Supported\n\nPlease report anything you encounter.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favocode%2Freactmemory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favocode%2Freactmemory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favocode%2Freactmemory/lists"}