Skip to content

Jintops/namaste-react

Repository files navigation

Namaste React 🚀

parcel

-DEV Build -Local Server -caching - Faster Builds -Image Optimization -Minification -Bundling -Compress -Error Handling

Export and Import

-Default Export/Import export default Component; import Component from "path"; -Named Export/Import
export const Component; import {Component} from "path";

React Hooks

(Normal JS utility functions) -useStates() -superpowerful state variable in react -useEffect()

Activity

-header --includes images and other page headings -body cards --different cards and details -login/logout --while clicking its changes its state -shimmer ui --dummy data given before actual data displays -top restaurants --filtering based on rating -search --finding the restaurants by search -routing --routing into different pages -detailed card info --while clicking the card it shows the details of restaurants -tailwind css --design of our page -offline/online --it shows the internet connection activity -error page --this page loads when error occurs -js file into different bundles --different bundles are loaded only when needed -class components --different features of class components -creating hooks --create our own hooks

Redux Toolkit

-Install @reduxjs/toolkit and react-redux -Build our store -Connect our store to our app -Slice (cartSlicd) -dispatch an action -selector

Types of testing (developer)

-unit Testing -Integration Testing -End to End Testing - e2e testing

setting up Testing in our app

-Install React Testing Library -Installed jest -Installed Babel dependencies -configure Babel -configure parcel config file to disable default babel transpilation - parcel website ,babel -jest configuration - npx jest --init -Install jsdom Library - jest28 -Install @babel/preset-react - to make jsx work in test cases -include @babel/preset -react inside my babel config -Install @testing-library/jest-dom

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published