Coder Social home page Coder Social logo

swiggywtproject's Introduction

React

  • Parcel
  • Dev Build
  • Local Server
  • HMR = Hot Module Replacement
  • File Watching Algorithm - written in C++
  • Caching - Faster Builds
  • Image Optimization
  • Minification
  • Bundling
  • Compress
  • Consistent Hashing
  • Code Splitting
  • Differential Bundling - support older browsers
  • Diagnostic
  • Error Handling
  • HTTPs
  • Tree Shaking - remove unused code
  • Different dev and prod bundles

Food Delivery App

  • Header

  • Logo

  • Nav Items

  • Body

  • Search

  • RestaurantContainer

  • RestaurantCard

    • Img
    • Name of Res, Star Rating, cuisine, delery tie
  • Footer

  • Copyright

  • Links

  • Address

  • Contact

  • Two types of Export/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)

useState() - Superpowerful State Variables in react useEffect()

2 types Routing in web apps

  • Client Side Routing
  • Server Side Routing

React Class Component LifeCycle

LifeCycle in UserClass2.js

Mounting phase

Constructor(with default data)

render(with default data)

DOM is updated

ComponentDidMount() is called (In which there is this.setState() is there which will trigger render(with updated values))


Updating phase

render(with update value[API DATA])

DOM is updated

ComponentDidUpdate() is called


UnMounting Phase

When we will move to Other page like contact, cart etc. then componentWillUnmount() will be called

For large Web Apps

  • For large Web Apps We make small bundles of our files, This thing have different name in market :- - Chunking - Code Splitting - Lazy Loading - Dynamic loading - On demand loading - Dynamic import

Different popular ways to add CSS

  • Tailwind CSS
  • Sass and SCSS
  • Style Components
  • Material UI
  • Bootstrap
  • Chakra UI
  • Ant Design etc..

swiggywtproject's People

Contributors

mush18 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.