Sorry, an unexpected error has occured.
19 |20 | 21 | {(error as IRouteError).statusText || 22 | (error as IRouteError).message} 23 | 24 |
25 |26 | {(error as IRouteError).status} 27 |
28 |├── .gitignore ├── .vscode └── settings.json ├── Day1 ├── README.md └── assignment1 │ └── src │ ├── MyComponent.js │ ├── index.html │ └── style.css ├── Day11 └── github-api-project-ts │ └── logo-no-background.png ├── Day12 ├── README12.md └── github-api-project-ts │ ├── .editorconfig │ ├── .eslintrc.json │ ├── .gitignore │ ├── .prettierrc │ ├── .vscode │ └── settings.json │ ├── README.md │ ├── package-lock.json │ ├── package.json │ ├── public │ ├── favicon.ico │ ├── index.html │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── robots.txt │ ├── src │ ├── assets │ │ ├── icons │ │ │ └── index.ts │ │ └── images │ │ │ ├── banner-logo.png │ │ │ └── logo-no-background.png │ ├── components │ │ ├── Buttons │ │ │ └── ShowButton │ │ │ │ ├── NavigationButton.tsx │ │ │ │ └── navigationButton.styles.module.css │ │ ├── Card │ │ │ ├── Card.tsx │ │ │ └── card.styles.module.css │ │ ├── ErrorPage │ │ │ ├── ErrorPage.tsx │ │ │ └── errors.css │ │ ├── Input │ │ │ ├── Input.tsx │ │ │ └── InputError.tsx │ │ ├── Loader │ │ │ ├── Loader.tsx │ │ │ └── loader.styles.module.css │ │ ├── Select │ │ │ └── Option.tsx │ │ ├── SelectByCity │ │ │ ├── SelectByCity.tsx │ │ │ ├── SelectHeading.tsx │ │ │ └── selectByCity.styles.module.css │ │ └── index.ts │ ├── containers │ │ ├── Header │ │ │ ├── Header.tsx │ │ │ └── header.styles.module.css │ │ ├── MemberInfo │ │ │ ├── MemberInfo.tsx │ │ │ └── memberInfo.module.css │ │ ├── Members │ │ │ ├── Members.tsx │ │ │ ├── member.styles.module.css │ │ │ └── membersData.ts │ │ ├── NavBar │ │ │ ├── NavBarUI │ │ │ │ ├── AppModeIcon.tsx │ │ │ │ ├── NavbarHeader.tsx │ │ │ │ └── NavbarUi.tsx │ │ │ ├── Navbar.styles.module.css │ │ │ └── Navbar.tsx │ │ ├── Navigator │ │ │ ├── Navigator.tsx │ │ │ └── navigator.styles.module.css │ │ ├── SearchGithubUsers │ │ │ ├── SearchGithubUsers.tsx │ │ │ ├── SearchGithubUsersUI │ │ │ │ └── Heading.tsx │ │ │ └── searchGithubUsers.styles.module.css │ │ └── index.ts │ ├── contexts │ │ └── ThemeContext │ │ │ ├── ThemeContext.ts │ │ │ ├── ThemeContextProvider.tsx │ │ │ └── index.ts │ ├── hooks │ │ ├── index.ts │ │ ├── typesHooks.ts │ │ └── useFetchUsersByCity.ts │ ├── index.css │ ├── index.tsx │ ├── logo.svg │ ├── miscellaneous │ │ ├── ChildClassBasedComponent.tsx │ │ └── ParentClassBasedComponent.tsx │ ├── pages │ │ ├── AuthPages │ │ │ ├── Login │ │ │ │ ├── Form.tsx │ │ │ │ ├── Login.tsx │ │ │ │ ├── LoginForm.tsx │ │ │ │ ├── LoginInputs.tsx │ │ │ │ ├── login.styles.ts │ │ │ │ └── login.types.ts │ │ │ └── Logout │ │ │ │ └── Logout.tsx │ │ ├── HomePage │ │ │ ├── HomePage.tsx │ │ │ └── homePage.styles.module.css │ │ ├── index.ts │ │ └── utils.ts │ ├── react-app-env.d.ts │ ├── reportWebVitals.ts │ ├── routes │ │ ├── ProtectedRoute.tsx │ │ └── index.tsx │ ├── services │ │ ├── index.ts │ │ └── mockData.ts │ ├── setupTests.ts │ ├── slices │ │ └── loginSlice.ts │ ├── store │ │ └── index.ts │ ├── types │ │ └── index.ts │ └── utils │ │ └── state-city-data.json │ └── tsconfig.json ├── Day13 └── README.md ├── Day2 ├── README.md ├── babelTranspiler │ ├── .babelrc │ ├── package-lock.json │ ├── package.json │ └── src │ │ └── index.js ├── react-app │ ├── .gitignore │ ├── README.md │ ├── package-lock.json │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── robots.txt │ └── src │ │ ├── App.css │ │ ├── App.js │ │ ├── App.test.js │ │ ├── index.css │ │ ├── index.js │ │ ├── logo.svg │ │ ├── reportWebVitals.js │ │ └── setupTests.js ├── react-typescript-app │ ├── .gitignore │ ├── README.md │ ├── package-lock.json │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── robots.txt │ ├── src │ │ ├── App.css │ │ ├── App.test.tsx │ │ ├── App.tsx │ │ ├── index.css │ │ ├── index.tsx │ │ ├── logo.svg │ │ ├── react-app-env.d.ts │ │ ├── reportWebVitals.ts │ │ └── setupTests.ts │ └── tsconfig.json ├── withParcel │ ├── .gitignore │ ├── package-lock.json │ ├── package.json │ └── src │ │ ├── index.html │ │ └── script.js ├── withWebpack │ ├── .gitignore │ ├── README.md │ ├── package-lock.json │ ├── package.json │ ├── src │ │ ├── index.html │ │ └── index.js │ └── webpack.config.js └── withWebpackTypeScript │ ├── .gitignore │ ├── README.md │ ├── index.html │ ├── package-lock.json │ ├── package.json │ ├── src │ ├── index.css │ └── index.tsx │ ├── tsconfig.json │ └── webpack.config.js ├── Day3 ├── README.md ├── package-lock.json ├── package.json └── src │ ├── Headings.js │ ├── Navbar.js │ ├── assets │ ├── logo.png │ └── project.png │ ├── index.html │ ├── index.js │ └── style.css ├── Day4and5 ├── README.md ├── README2.md ├── package-lock.json ├── package.json ├── public │ ├── avengers-logo-files │ │ ├── png │ │ │ ├── logo-black.png │ │ │ ├── logo-color.png │ │ │ ├── logo-no-background.png │ │ │ └── logo-white.png │ │ └── svg │ │ │ ├── logo-black.svg │ │ │ ├── logo-color.svg │ │ │ ├── logo-no-background.svg │ │ │ └── logo-white.svg │ └── index.html └── src │ ├── App.js │ ├── App.styles.css │ ├── components │ ├── Card │ │ ├── Card.jsx │ │ └── Card.styles.module.css │ ├── Cards │ │ ├── Cards.jsx │ │ └── Cards.styles.module.css │ ├── Header │ │ ├── Header.jsx │ │ └── Header.styles.module.css │ └── SearchComponent │ │ ├── Search.jsx │ │ └── Search.styles.module.css │ ├── index.js │ ├── pages │ └── HomePage │ │ ├── AvengersData.json │ │ └── HomePage.jsx │ └── utils │ └── index.js ├── Day6 ├── README6.md └── github-api-project-ts │ ├── .gitignore │ ├── README.md │ ├── package-lock.json │ ├── package.json │ ├── public │ ├── favicon.ico │ ├── index.html │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── robots.txt │ ├── src │ ├── App.tsx │ ├── assets │ │ ├── icons │ │ │ └── index.js │ │ └── images │ │ │ └── logo-no-background.png │ ├── components │ │ ├── Card │ │ │ ├── Card.tsx │ │ │ └── card.styles.module.css │ │ └── index.ts │ ├── containers │ │ ├── Header │ │ │ ├── Header.tsx │ │ │ └── header.styles.module.css │ │ ├── Members │ │ │ ├── Members.tsx │ │ │ ├── member.styles.module.css │ │ │ └── membersData.ts │ │ ├── NavBar │ │ │ ├── Navbar.styles.module.css │ │ │ └── Navbar.tsx │ │ └── index.ts │ ├── index.css │ ├── index.tsx │ ├── logo.svg │ ├── pages │ │ ├── HomePage │ │ │ └── HomePage.tsx │ │ └── index.ts │ ├── react-app-env.d.ts │ ├── reportWebVitals.ts │ ├── services │ │ ├── index.ts │ │ └── mockData.ts │ ├── setupTests.ts │ └── types │ │ └── index.ts │ └── tsconfig.json ├── Day7n8n9n10 ├── README10.md ├── README7.md ├── README8.md ├── README9.md └── github-api-project-ts │ ├── .eslintrc.json │ ├── .gitignore │ ├── .prettierrc │ ├── .vscode │ └── settings.json │ ├── README.md │ ├── package-lock.json │ ├── package.json │ ├── public │ ├── favicon.ico │ ├── index.html │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── robots.txt │ ├── src │ ├── assets │ │ ├── icons │ │ │ └── index.ts │ │ └── images │ │ │ └── logo-no-background.png │ ├── components │ │ ├── Buttons │ │ │ └── ShowButton │ │ │ │ ├── NavigationButton.tsx │ │ │ │ └── navigationButton.styles.module.css │ │ ├── Card │ │ │ ├── Card.tsx │ │ │ └── card.styles.module.css │ │ ├── ErrorPage │ │ │ ├── ErrorPage.tsx │ │ │ └── errors.css │ │ ├── Loader │ │ │ ├── Loader.tsx │ │ │ └── loader.styles.module.css │ │ ├── Select │ │ │ └── Option.tsx │ │ ├── SelectByCity │ │ │ ├── SelectByCity.tsx │ │ │ ├── SelectHeading.tsx │ │ │ └── selectByCity.styles.module.css │ │ └── index.ts │ ├── containers │ │ ├── Header │ │ │ ├── Header.tsx │ │ │ └── header.styles.module.css │ │ ├── MemberInfo │ │ │ ├── MemberInfo.tsx │ │ │ └── memberInfo.module.css │ │ ├── Members │ │ │ ├── Members.tsx │ │ │ ├── member.styles.module.css │ │ │ └── membersData.ts │ │ ├── NavBar │ │ │ ├── NavBarUI │ │ │ │ ├── AppModeIcon.tsx │ │ │ │ ├── NavbarHeader.tsx │ │ │ │ └── NavbarUi.tsx │ │ │ ├── Navbar.styles.module.css │ │ │ └── Navbar.tsx │ │ ├── Navigator │ │ │ ├── Navigator.tsx │ │ │ └── navigator.styles.module.css │ │ ├── SearchGithubUsers │ │ │ ├── SearchGithubUsers.tsx │ │ │ ├── SearchGithubUsersUI │ │ │ │ └── Heading.tsx │ │ │ └── searchGithubUsers.styles.module.css │ │ └── index.ts │ ├── contexts │ │ └── ThemeContext │ │ │ ├── ThemeContext.ts │ │ │ ├── ThemeContextProvider.tsx │ │ │ └── index.ts │ ├── hooks │ │ └── useFetchUsersByCity.ts │ ├── index.css │ ├── index.tsx │ ├── logo.svg │ ├── miscellaneous │ │ ├── ChildClassBasedComponent.tsx │ │ └── ParentClassBasedComponent.tsx │ ├── pages │ │ ├── HomePage │ │ │ ├── HomePage.tsx │ │ │ └── homePage.styles.module.css │ │ └── index.ts │ ├── react-app-env.d.ts │ ├── reportWebVitals.ts │ ├── routes │ │ └── index.tsx │ ├── services │ │ ├── index.ts │ │ └── mockData.ts │ ├── setupTests.ts │ ├── types │ │ └── index.ts │ └── utils │ │ └── state-city-data.json │ └── tsconfig.json ├── LICENSE ├── README.md ├── Revision ├── Basic_React │ ├── way1 │ │ ├── index.html │ │ └── script.js │ └── way2 │ │ ├── MyReactElement.js │ │ ├── README.md │ │ ├── React.js │ │ ├── ReactElement.js │ │ ├── index.html │ │ ├── package-lock.json │ │ ├── package.json │ │ ├── script.js │ │ └── styles.css ├── COMPONENTvsELEMENT_REACT │ ├── index.html │ ├── package-lock.json │ ├── package.json │ └── script.js ├── UnderstandingUseEffect │ ├── index.html │ ├── package-lock.json │ ├── package.json │ └── script.js ├── UnderstandingUseMemo │ ├── React.js │ ├── ReactDOM.js │ ├── index.html │ ├── package-lock.json │ ├── package.json │ └── script.js ├── UnderstandingUseState │ ├── public │ │ └── index.html │ └── src │ │ └── index.js ├── custom-components │ ├── index.html │ └── script.js ├── machine_coding │ └── nestedComments │ │ ├── CommentsComponent.js │ │ ├── index.html │ │ ├── index.js │ │ ├── nestedCommentsData.js │ │ ├── package-lock.json │ │ └── package.json ├── stateInReact │ ├── component.js │ └── index.html └── typesOfComponents │ └── createClassComponent │ ├── index.html │ ├── package-lock.json │ ├── package.json │ └── script.js ├── TEACHING_LIBRARIES ├── 01-typescript │ ├── package-lock.json │ ├── package.json │ ├── src │ │ ├── index.js │ │ ├── index.ts │ │ ├── mutations.js │ │ └── mutations.ts │ └── tsconfig.json └── 02-react-query │ ├── index.html │ ├── package-lock.json │ ├── package.json │ └── script.js └── miscellaneous ├── cypress-testing └── unit-testing-with-cypress │ ├── README.md │ └── cypress-unit-testing-project │ ├── .gitignore │ ├── cypress.config.js │ ├── cypress │ ├── component │ │ └── Movielist.cy.js │ └── support │ │ └── index.ts │ ├── index.html │ ├── package-lock.json │ ├── package.json │ ├── public │ └── vite.svg │ ├── src │ ├── App.css │ ├── App.tsx │ ├── assets │ │ └── react.svg │ ├── components │ │ └── MovieList.tsx │ ├── index.css │ ├── main.tsx │ └── vite-env.d.ts │ ├── tsconfig.json │ ├── tsconfig.node.json │ └── vite.config.ts ├── indexedDbDemo └── index.html ├── react-native ├── .expo-shared │ └── assets.json ├── .gitignore ├── App.js ├── app.json ├── assets │ ├── adaptive-icon.png │ ├── data.json │ ├── favicon.png │ ├── icon.png │ ├── images │ │ ├── beach.jpg │ │ ├── forest.jpg │ │ └── mountain.jpg │ └── splash.png ├── babel.config.js ├── package-lock.json ├── package.json └── src │ ├── components │ └── ImageDetail.js │ └── screens │ ├── ComponentsScreen.js │ ├── CounterScreen.js │ ├── HomeScreen.js │ ├── ImageScreen.js │ ├── ListScreen.js │ └── TextInputScreen.js ├── react-router-docs-tutorials ├── .gitignore ├── index.html ├── package-lock.json ├── package.json ├── public │ └── vite.svg ├── src │ ├── contacts.js │ ├── error-page.jsx │ ├── index.css │ ├── main.jsx │ └── routes │ │ ├── contact.jsx │ │ ├── destroy.jsx │ │ ├── edit.jsx │ │ ├── index.jsx │ │ └── root.jsx └── vite.config.js ├── react-testing-learnings ├── color-button │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── package-lock.json │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── index.html │ │ ├── logo192.png │ │ ├── logo512.png │ │ ├── manifest.json │ │ └── robots.txt │ └── src │ │ ├── App.css │ │ ├── App.js │ │ ├── App.test.js │ │ ├── index.css │ │ ├── index.js │ │ ├── logo.svg │ │ ├── reportWebVitals.js │ │ └── setupTests.js ├── notes.js └── sundaes-on-demand │ ├── .eslintrc.json │ ├── .gitignore │ ├── README.md │ ├── package-lock.json │ ├── package.json │ ├── public │ ├── favicon.ico │ ├── index.html │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── robots.txt │ └── src │ ├── App.css │ ├── App.js │ ├── App.test.js │ ├── index.css │ ├── index.js │ ├── logo.svg │ ├── mocks │ └── handlers.js │ ├── pages │ └── summary │ │ ├── OrderSummary.jsx │ │ ├── SummaryForm.jsx │ │ └── test │ │ └── SummaryForm.test.jsx │ ├── reportWebVitals.js │ └── setupTests.js └── redux-essentials-docs └── redux-essentials-example ├── .gitignore ├── README.md ├── package-lock.json ├── package.json ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt └── src ├── App.css ├── App.js ├── App.test.js ├── app └── store.js ├── features └── counter │ ├── Counter.js │ ├── Counter.module.css │ ├── counterAPI.js │ ├── counterSlice.js │ └── counterSlice.spec.js ├── index.css ├── index.js ├── logo.svg ├── reportWebVitals.js └── setupTests.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | 3 | build 4 | 5 | lib 6 | 7 | .parcel-cache 8 | 9 | dist 10 | 11 | .DS_Store 12 | # Local Netlify folder 13 | .netlify 14 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "liveServer.settings.port": 5501 3 | } 4 | -------------------------------------------------------------------------------- /Day1/assignment1/src/MyComponent.js: -------------------------------------------------------------------------------- 1 | //Hello React 2 | const createReactElement = React.createElement; 3 | const createReactRoot = ReactDOM.createRoot; 4 | const rootDOMElement = document.querySelector("#root"); 5 | 6 | /** 7 | * @params {String} JSX Element 8 | * @params {Object} props 9 | * @params {React Element/ Array of React Element} children 10 | * @returns React Element 11 | */ 12 | //Added two children, an array of two objects in props 13 | const element = createReactElement( 14 | "div", 15 | { myprops: { name: "Ajay", age: 22, children: "Ajay" } }, 16 | [ 17 | createReactElement( 18 | "h1", 19 | { myprops: { name: "Asha Bhosle" } }, 20 | `I am created with Reactjs` 21 | ), 22 | "Hello, I am the next react child", 23 | ] 24 | ); 25 | 26 | const rootOfApplication = createReactRoot(rootDOMElement); 27 | rootOfApplication.render(element); 28 | 29 | // Hello Vanilla JS 30 | const heading = document.createElement("h1"); 31 | heading.innerText = "I am created with Vanilla JS dynamically"; 32 | heading.classList.add("vanillaJS"); 33 | heading.style.color = "red"; 34 | document.body.append(heading); 35 | -------------------------------------------------------------------------------- /Day1/assignment1/src/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |Sorry, an unexpected error has occured.
19 |20 | 21 | {(error as IRouteError).statusText || 22 | (error as IRouteError).message} 23 | 24 |
25 |26 | {(error as IRouteError).status} 27 |
28 |
10 | Edit src/App.js
and save to reload.
11 |
11 | Edit src/App.tsx
and save to reload.
12 |
{data.company}
23 |{data.designation}
24 |Team A
10 |Sorry, an unexpected error has occured.
13 |14 | {error.statusText || error.message} 15 |
16 |17 | {error.status} 18 |
19 |Count: {this.state.count}
16 |{data.description}
26 | 👀 {data.subscribers_count}{" "} 27 | ✨ {data.stargazers_count}{" "} 28 | 🍴 {data.forks_count} 29 |Sorry, an unexpected error has occured.
11 |12 | {error.statusText || error.message} 13 |
14 |15 | {error.status} 16 |
17 |
4 | This is a demo for React Router.
5 |
6 | Check out{" "}
7 | the docs at reactrouter.com.
8 |