{"id":19035255,"url":"https://github.com/omkarcloud/cogo-toast-react-17-fix","last_synced_at":"2026-04-17T12:33:30.923Z","repository":{"id":226727933,"uuid":"769500259","full_name":"omkarcloud/cogo-toast-react-17-fix","owner":"omkarcloud","description":"A compatibility fix for the 'cogo-toast' library enabling seamless use with React 17 and newer versions.","archived":false,"fork":false,"pushed_at":"2024-03-09T09:02:15.000Z","size":1430,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-27T06:02:15.402Z","etag":null,"topics":["cogo-toast","compatibility-fix","customizable-ui","error-handling","frontend","javascript","message-toast","notification-system","react","react-components","react-hooks","react-library","react-ui","react17","reactjs-toast","toast-notifications","ui-components","ui-library","user-feedback","web-development"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omkarcloud.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":["Chetan11-Dev"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-03-09T08:54:01.000Z","updated_at":"2024-03-09T08:55:58.000Z","dependencies_parsed_at":"2024-03-09T09:54:51.045Z","dependency_job_id":null,"html_url":"https://github.com/omkarcloud/cogo-toast-react-17-fix","commit_stats":null,"previous_names":["omkarcloud/cogo-toast-react-17-fix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/omkarcloud/cogo-toast-react-17-fix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omkarcloud%2Fcogo-toast-react-17-fix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omkarcloud%2Fcogo-toast-react-17-fix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omkarcloud%2Fcogo-toast-react-17-fix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omkarcloud%2Fcogo-toast-react-17-fix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omkarcloud","download_url":"https://codeload.github.com/omkarcloud/cogo-toast-react-17-fix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omkarcloud%2Fcogo-toast-react-17-fix/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263472279,"owners_count":23471812,"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":["cogo-toast","compatibility-fix","customizable-ui","error-handling","frontend","javascript","message-toast","notification-system","react","react-components","react-hooks","react-library","react-ui","react17","reactjs-toast","toast-notifications","ui-components","ui-library","user-feedback","web-development"],"created_at":"2024-11-08T21:49:47.242Z","updated_at":"2026-04-17T12:33:30.917Z","avatar_url":"https://github.com/omkarcloud.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Chetan11-Dev"],"categories":[],"sub_categories":[],"readme":"## cogo-toast-react-17-fix\r\n\r\nA compatibility fix for the popular 'cogo-toast' package that resolves dependency conflicts with React 17+.\r\n\r\n**Problem**\r\n\r\nThe original cogo-toast library has a strict peer dependency on React 16. This causes installation and compatibility issues when used with React 17 or newer versions. \r\n\r\n**Solution**\r\n\r\nThe 'cogo-toast-react-17-fix' package provides the necessary modifications to ensure that cogo-toast functions correctly within React 17+ environments. \r\n\r\n**Installation**\r\n\r\n```bash\r\nnpm install cogo-toast-react-17-fix\r\n```\r\n\r\n**Usage** \r\n\r\nImport and use the provided `cogoToast` component exactly as you would in the original 'cogo-toast' package. There are no additional changes required.\r\n\r\n```javascript\r\nimport cogoToast from 'cogo-toast-react-17-fix';\r\n\r\ncogoToast.success('This is a success message!');\r\n```\r\n\r\n**Example**\r\n\r\n```javascript\r\nimport React from 'react';\r\nimport cogoToast from 'cogo-toast-react-17-fix';\r\n\r\nconst App = () =\u003e {\r\n  const handleButtonClick = () =\u003e {\r\n    cogoToast.error('This is an error message!');\r\n  }\r\n\r\n  return (\r\n    \u003cbutton onClick={handleButtonClick}\u003eShow Error Toast\u003c/button\u003e\r\n  );\r\n}\r\n\r\nexport default App;\r\n```\r\n\r\n**Important Notes**\r\n\r\n* Please refer to the original 'cogo-toast' documentation for detailed usage and customization of toast messages: [https://github.com/Cogoport/cogo-toast](https://github.com/Cogoport/cogo-toast) \r\n \r\n---\r\n\r\n## Love It? [Star It ⭐!](https://github.com/omkarcloud/cogo-toast-react-17-fix)\r\n\r\nBecome one of our amazing stargazers by giving us a star ⭐ on GitHub!\r\n\r\nIt's just one click, but it means the world to me.\r\n\r\n[![Stargazers for @omkarcloud/cogo-toast-react-17-fix](https://bytecrank.com/nastyox/reporoster/php/stargazersSVG.php?user=omkarcloud\u0026repo=cogo-toast-react-17-fix)](https://github.com/omkarcloud/cogo-toast-react-17-fix/stargazers)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomkarcloud%2Fcogo-toast-react-17-fix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomkarcloud%2Fcogo-toast-react-17-fix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomkarcloud%2Fcogo-toast-react-17-fix/lists"}