{"id":24468720,"url":"https://github.com/brianobot/react-first-course","last_synced_at":"2025-03-14T13:23:29.996Z","repository":{"id":181239446,"uuid":"666447101","full_name":"brianobot/React-First-Course","owner":"brianobot","description":"First Course Learning the Fundamental of React with Code with Mosh","archived":false,"fork":false,"pushed_at":"2023-07-24T18:46:43.000Z","size":49,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T07:12:56.725Z","etag":null,"topics":["learning-by-doing","react-components","react-tutorial","reactjs"],"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/brianobot.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}},"created_at":"2023-07-14T14:38:46.000Z","updated_at":"2023-07-14T15:52:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"88454e7d-52f6-4ef2-8ae8-418c03c438d3","html_url":"https://github.com/brianobot/React-First-Course","commit_stats":null,"previous_names":["brianobot/react-first-course"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianobot%2FReact-First-Course","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianobot%2FReact-First-Course/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianobot%2FReact-First-Course/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianobot%2FReact-First-Course/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianobot","download_url":"https://codeload.github.com/brianobot/React-First-Course/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243581607,"owners_count":20314271,"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":["learning-by-doing","react-components","react-tutorial","reactjs"],"created_at":"2025-01-21T07:13:00.472Z","updated_at":"2025-03-14T13:23:29.971Z","avatar_url":"https://github.com/brianobot.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React-First-Course\nFirst Course Learning the Fundamental of React with Code with Mosh\n\n### Introduction (Revision) of the Working Principal of Web Pages\nWeb pages are generally wriiten in HTML, when the web page is loaded in a browser,the browser takes this html code\nand produces a tree like structure called the DOM (Document Object Model), this can then be manipulated by javascript\nin response to the user actions.\n\nFor example, we can use javascript to hide a button when it is clicked, \nthis is vanilla javascript (plain  javascript code without any 3rd party code)\n\n### React Intro\nIn React, the webpage is built using components, the components are the basic building block used by the user,\nessentially, all reacts apps are made up of components in a tree structure with the App component being the root.\n\n### Settng Up Development Environment\n\u003e\u003e\u003e npm create vite@latest\n\nFollow and fill the prompt appropriately\n\n\u003e\u003e\u003e cd \u003cproject_name\u003e\n\nProject name must match name selected above\n\n\u003e\u003e\u003e npm i \n\nto Install project dependencies\n\n\u003e\u003e\u003e npm run dev\n\nTo Run the local development server\n\n\n### Good to Know!\n- node_modules: Contain library files needed by dependecies \n- public: Contain assets that would be exposed by your application (e.g Videos, Pictures etc)\n- src : Contain the source code for your application\n\n\n### Javscript Tips\n- Object Deconstruction: This allows us to select certain attributes from within an object to be used an independent variables\n    in other scopes of the program\n\n    Example :\n    \n        const regularPerson {\n            firstName: \"Brian\",\n            lastName: \"Obot\"\n        }\n\n        let { firstname } = regularPerson \n        console.log(firstname) // Brian\n\n        // Just for reference the name of the deconstructed variable doesn;t have to match\n        // the attribute name, just the attribute position matters\n\n        Further more functions that expect objects can be deconstructed at the arguments level to obtain\n        just the attributes needed, \n\n\n- Object Literal Enhancement: This is the opposite of Object deconstruction, it allows variables to be grabbed from the \n    global scope and construction objects using these variables\n\n    Example : \n\n        const name = \"Tallac\";\n        const elevation = 9738;\n\n        const funHike = { name, elevation };\n        console.log(funHike); // {name: \"Tallac\", elevation: 9738}\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianobot%2Freact-first-course","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianobot%2Freact-first-course","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianobot%2Freact-first-course/lists"}