{"id":20230702,"url":"https://github.com/cdepillabout/purescript-road-to-react","last_synced_at":"2025-07-26T10:34:52.127Z","repository":{"id":53899025,"uuid":"286199470","full_name":"cdepillabout/purescript-road-to-react","owner":"cdepillabout","description":"PureScript translation of example JavaScript React app from https://www.roadtoreact.com/","archived":false,"fork":false,"pushed_at":"2020-08-25T11:38:11.000Z","size":67,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-29T00:50:09.104Z","etag":null,"topics":["example","frontend","hacktoberfest","purescript","purescript-react-basic","purescript-react-basic-hooks","react","react-basic","react-basic-hooks"],"latest_commit_sha":null,"homepage":"","language":"PureScript","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/cdepillabout.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-08-09T08:42:58.000Z","updated_at":"2022-08-06T05:53:00.000Z","dependencies_parsed_at":"2022-08-13T03:40:40.456Z","dependency_job_id":null,"html_url":"https://github.com/cdepillabout/purescript-road-to-react","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cdepillabout/purescript-road-to-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdepillabout%2Fpurescript-road-to-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdepillabout%2Fpurescript-road-to-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdepillabout%2Fpurescript-road-to-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdepillabout%2Fpurescript-road-to-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdepillabout","download_url":"https://codeload.github.com/cdepillabout/purescript-road-to-react/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdepillabout%2Fpurescript-road-to-react/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267150480,"owners_count":24043473,"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","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["example","frontend","hacktoberfest","purescript","purescript-react-basic","purescript-react-basic-hooks","react","react-basic","react-basic-hooks"],"created_at":"2024-11-14T07:43:29.209Z","updated_at":"2025-07-26T10:34:52.102Z","avatar_url":"https://github.com/cdepillabout.png","language":"PureScript","readme":"\n# purescript-road-to-react\n\nThe book [Road to React](https://www.roadtoreact.com/) is an introductory book\nto React in JavaScript.  In early 2020, the book was updated to use\n[React Hooks](https://reactjs.org/docs/hooks-intro.html).\n\nThe first half of the book iteratively develops a React-based frontend.  Each\nchapter gradually introduces more and more functionality from React.  As the\nfirst half of the book comes to an end, you've written a basic frontend that\ndemonstrates a good deal of the functionality of React.\n\nThis repo translates the on-going example from into PureScript, using the\n[purescript-react-basic-hooks](https://github.com/spicydonuts/purescript-react-basic-hooks)\nlibrary.\n\n## The Code\n\nThe original JavaScript code can be found on CodeSandbox\n[here](https://codesandbox.io/s/github/the-road-to-learn-react/hacker-stories/tree/hs/Data-Re-Fetching-in-React).\n\nThe translated PureScript code can be found [in this repo](./src/App.purs).\n\n## Running\n\nThis repo can be built by running the following commands:\n\n```console\n# Enter into a Nix shell with all the dependencies available.\n$ nix-shell\n# Within the nix shell, build the PureScript app with spago.\n$ spago build\n# Run Parcel to handle the CommonJS modules.\n$ parcel index.html\n```\n\n`parcel` serves the app on http://localhost:1234/.\n\nIf you want to do development interactively, you can start `spago` in one\nterminal with a command line `spago build --watch`, and then start `parcel` in\nanother terminal.  `parcel` sometimes gets autoreloading correct, but sometimes\nyou explicitly have to refresh the browser window to see changes.\n\nIf you don't want to use Nix, it should be possible to install `spago`, the\nPureScript compiler, and Parcel with NPM/yarn.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdepillabout%2Fpurescript-road-to-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdepillabout%2Fpurescript-road-to-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdepillabout%2Fpurescript-road-to-react/lists"}