Giter VIP home page Giter VIP logo

meetprajapati10 / namaste-react Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 324 KB

JavaScript 99.65% CSS 0.05% HTML 0.30%
class-based-components functional-components integration-testing javascript jest npm packagejson parcel-bundler react-lifecycle reactjs redux-toolkit tailwindcss testing unit-testing diff-algorithm react-fiber reconciliation-algorithm virtual-dom react-hooks swiggy-api

namaste-react's Introduction

Namaste ReactJs โœŒ๏ธ๐Ÿš€

Parcel

  • Dev Build.
  • Local Server
  • HMR = Hot Module Replacement
  • File Watching Algorithm - Written in C++
  • Caching - Faster Builds.
  • Image optimization
  • Minification
  • Tree shaking - Remove unused code
  • Compression
  • Code splitting
  • Content hashing
  • Bundling
  • Differential bundling - support older browser
  • Diagnostics
  • Error Handling
  • HTTPs
  • Different dev and prod bundles

Food Ordering App

/* My Food App structure will look like this,

  1. Header
    • Logo
    • Nav Items
  2. Body
    • Search Bar
    • RestaurentContainer
      • RestaurentCard
        • Image
        • Name of Res., Star Rating, Cuisines(like res. food in pizza, dabeli, bhel ....) , Delivery Time
  3. Footer
    • Copyright
    • Links
    • Address
    • Contact

Two Types of Export/Import

You can export Multiple thing to use - Named Export/Import

1. Default Export/Import

  • export default Component;
  • import Component from "path";

2. Named Export/Import

  • export const Component;
  • import {Component} from "path";

React Hooks

(Normal JS Utility Functions)

  • useState - Superpowerful State Variable in React
  • useEffect

2 types of Routing in Web Apps

1) Client Side Routing

  • In React-Router (<Link to='/path'></Link>) We are not making any network called while we are moving to our page because all the Component are already to be loaded to in our app.

2) Server Side Routing

  • Reload the Whole Page.
  • (.html) file page click on the (<a href='/path'></a> Tag) that makes a network called and fetches data of (another.html) file page that render the UI and Refresh the whole page.

namaste-react's People

Contributors

meetprajapati10 avatar

Stargazers

 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.