Skip to content

Commit f2fbd6f

Browse files
committed
till ep6
1 parent 1c657be commit f2fbd6f

File tree

9 files changed

+2314
-4723
lines changed

9 files changed

+2314
-4723
lines changed

Diff for: README.md

+65-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,65 @@
1-
# react-tutorials
1+
# Namaste React 🚀
2+
3+
4+
# Parcel
5+
- Dev Build
6+
- Local Server
7+
- HMR = Hot Module Replacement
8+
- File Watching Algorithm - written in C++
9+
- Caching - Faster Builds
10+
- Image Optimization
11+
- Minification
12+
- Bundling
13+
- Compress
14+
- Consistent Hashing
15+
- Code Splitting
16+
- Differential Bundling - support older browsers
17+
- Diagnostic
18+
- Error Handling
19+
- HTTPs
20+
- Tree Shaking - remove unused code
21+
- Different dev and prod bundles
22+
23+
24+
25+
# Namaste Food
26+
27+
28+
/**
29+
* Header
30+
* - Logo
31+
* - Nav Items
32+
* Body
33+
* - Search
34+
* - RestaurantContainer
35+
* - RestaurantCard
36+
* - Img
37+
* - Name of Res, Star Rating, cuisine, delery tie
38+
* Footer
39+
* - Copyright
40+
* - Links
41+
* - Address
42+
* - Contact
43+
*/
44+
45+
46+
47+
Two types of Export/Import
48+
49+
50+
- Default Export/Import
51+
52+
export default Component;
53+
import Component from "path";
54+
55+
56+
- Named Export/Import
57+
58+
export const Component;
59+
import {Component} from "path";
60+
61+
62+
# React Hooks
63+
(Normal JS utility functions)
64+
- useState() - Superpowerful State Variables in react
65+
- useEffect()

Diff for: index.css

+21
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,25 @@
5050
.filter-btn {
5151
margin: 10px;
5252
cursor: pointer;
53+
}
54+
55+
.shimmer-container {
56+
display: flex;
57+
flex-wrap: wrap;
58+
}
59+
60+
.shimmer-card {
61+
margin: 20px;
62+
width: 200px;
63+
height: 400px;
64+
background-color: #f0f0f0
65+
}
66+
67+
.login {
68+
padding: 0 20px;
69+
cursor: pointer;
70+
}
71+
72+
.filter {
73+
display: flex;
5374
}

0 commit comments

Comments
 (0)