{"id":17746750,"url":"https://github.com/andrekovac/react-18-gotchas","last_synced_at":"2026-01-30T14:17:26.093Z","repository":{"id":76129155,"uuid":"514259569","full_name":"andrekovac/react-18-gotchas","owner":"andrekovac","description":"Collection of things I had to get used to after upgrading from React v17 to React v18","archived":false,"fork":false,"pushed_at":"2022-09-28T12:43:29.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-14T19:09:51.107Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrekovac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-07-15T12:21:19.000Z","updated_at":"2023-01-17T18:29:52.000Z","dependencies_parsed_at":"2023-07-03T06:45:10.216Z","dependency_job_id":null,"html_url":"https://github.com/andrekovac/react-18-gotchas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/andrekovac/react-18-gotchas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrekovac%2Freact-18-gotchas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrekovac%2Freact-18-gotchas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrekovac%2Freact-18-gotchas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrekovac%2Freact-18-gotchas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrekovac","download_url":"https://codeload.github.com/andrekovac/react-18-gotchas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrekovac%2Freact-18-gotchas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28913977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"last_error":"SSL_read: 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-10-26T08:41:52.586Z","updated_at":"2026-01-30T14:17:26.064Z","avatar_url":"https://github.com/andrekovac.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚛️🤓 React 18 gotchas\n\nCollection of things I had to get used to after upgrading from React v17 to React v18\n\n## React 18 features / differences\n\n### [`React.StrictMode`](https://reactjs.org/docs/strict-mode.html)\n\n`StrictMode` in React 18 [adds a second rendering immediately after initial mount](https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html#updates-to-strict-mode).\n\nWhen using the `useEffect` hook, you should always [add a cleanup if needed](https://beta.reactjs.org/learn/synchronizing-with-effects#step-3-add-cleanup-if-needed).\n\n[Here](https://github.com/facebook/react/issues/24502#issuecomment-1118867879)'s what Dan Abramov has to say about it.\n\nHowever, sometimes this can be a bit trickier...\n\n*TBC*\n\n### `useSyncExternalStore` hook\n\n*TBC*\n\n### `Suspense` and `startTransition`\n\n- [What is tearing?](https://github.com/reactwg/react-18/discussions/69)\n\n\n## About\n\nThis is a living document and will be continously expanded as I learn more about React 18 🤓.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrekovac%2Freact-18-gotchas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrekovac%2Freact-18-gotchas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrekovac%2Freact-18-gotchas/lists"}