{"id":20838794,"url":"https://github.com/royalicing/learn-by-building","last_synced_at":"2025-06-24T07:35:09.662Z","repository":{"id":72483378,"uuid":"169849947","full_name":"RoyalIcing/learn-by-building","owner":"RoyalIcing","description":null,"archived":false,"fork":false,"pushed_at":"2019-02-09T09:19:40.000Z","size":148,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-18T23:43:38.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/RoyalIcing.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-02-09T09:14:10.000Z","updated_at":"2022-10-24T04:27:49.000Z","dependencies_parsed_at":"2023-02-25T12:30:36.025Z","dependency_job_id":null,"html_url":"https://github.com/RoyalIcing/learn-by-building","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/RoyalIcing%2Flearn-by-building","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoyalIcing%2Flearn-by-building/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoyalIcing%2Flearn-by-building/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RoyalIcing%2Flearn-by-building/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RoyalIcing","download_url":"https://codeload.github.com/RoyalIcing/learn-by-building/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243196662,"owners_count":20251861,"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-11-18T01:11:34.922Z","updated_at":"2025-03-12T10:08:44.711Z","avatar_url":"https://github.com/RoyalIcing.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learn by Building\n\nModern React with hooks, TypeScript, CSS — if you want to learn these you’ll find educational projects here. Build them yourself step-by-step.\n\n## Router in React\n\nFirst learn how to build a `\u003cRouter\u003e` component a la [react-router](https://reacttraining.com/react-router). Then learn about the `popstate` event and the `History` APIs, and creating a `\u003cLink\u003e` component. Finally, we will look at pattern matching in route paths, and query variables.\n\n```tsx\nfunction App() {\n  return \u003c\u003e\n    \u003cPrimaryNav /\u003e\n    \u003cmain\u003e\n      \u003cRoute path=\"/\" exact component={Home} /\u003e\n      \u003cRoute path=\"/about\" component={About} /\u003e\n      \u003cRoute path=\"/pricing\" component={Pricing} /\u003e\n    \u003c/main\u003e\n  \u003c/\u003e\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyalicing%2Flearn-by-building","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froyalicing%2Flearn-by-building","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyalicing%2Flearn-by-building/lists"}