Giter Site home page Giter Site logo

instantfood's Introduction

Namste React

parcel is a beast

  • dev build
  • Local server
  • HMR(hot module replacement) refreshing page automatically for smooth development -File watching Algorithm -written in c++
  • Caching - Faster Builds -Image Optimization (this is the most costly thing )
  • Minification
  • Bundling
  • Compressing
  • consistent Hashing
  • code spliting Differential Bundling (after hosting app can open in all web engines like crome ,internet explorer) support older browers
  • Better Error handling
  • Hosting on HTTPS
  • Tree shaking algo (removes unused code)
  • Different development and production bundles

namste Food

/** Components of Our Food-Order App

  • Header
    • Logo
    • Nav Items
  • Body
    • Search Bar
    • Restaurant-Container
    • Restaurant-Card
    • Img
    • Name of Res, Star Rating, cuisine, delivery time.
  • Footer
    • Copyright
    • Links
    • Address
    • Contact */

Two types of Export/Import -Default export/import export default Compenent import Component from "path"

Named Export/Import export const component import {component} from "Path"

 # two types of Routing 
  -client Side Routing
  -Server Side Routing
  
  # Redux  Toolkit(RTK)
   - install @reduxjs/toolkit and ract-redux
    - Build our store
    - connect our store to our app
    - Crate a Slice (cartSlic)
    -dispatch(action)
    -selector

Types of Testing (devloper)

  • Unit Testing (test in isolation) only specific small component

  • Integration

    • Testing the integration of so many components (multiple components envolved in testing )
  • End to End - Testing e2e testing

    • Testing start as soon as user lands on website to leave the website
    • It require Tools like selenius ,(cyprus)

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 transpiler
  • jest configuration
    • jest npx jest --init
  • install jsdom library
  • Install @babel/preset-react - to make JSx work in test cases
  • Include @babel/preset-react inside my babel config
  • Install npm i -D @testing-library/jest-dom

instantfood's People

Contributors

nileshsitawar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.