leon (@leonxxxxxxxxxtp) header
leon (@leonxxxxxxxxxtp) profile picture
Joined June 2026
Photo by leon (@leonxxxxxxxxxtp)Photo by leon (@leonxxxxxxxxxtp)Photo by leon (@leonxxxxxxxxxtp)Photo by leon (@leonxxxxxxxxxtp)Photo by leon (@leonxxxxxxxxxtp)Photo by leon (@leonxxxxxxxxxtp)Photo by leon (@leonxxxxxxxxxtp)Photo by leon (@leonxxxxxxxxxtp)Photo by leon (@leonxxxxxxxxxtp)Photo by leon (@leonxxxxxxxxxtp)
Day 65— Section 68: Component Design This section used a dice game to explore a bigger React idea: good component design is about clear responsibilities, state ownership, and predictable data flow—not simply splitting code into smaller files.
1
8
The original Lucky7 game was rigid: two dice, a fixed winning rule, and hard-coded markup. LuckyN generalized it with props for the number of dice, title, and winning function, making the same component usable for different games.
1
4
Day 65 — Section 67: Intermediate State Concepts State becomes more useful when updates depend on previous state, when data is stored in objects and arrays, and when multiple updates are queued. This section connected those ideas into practical patterns.
1
7
The updater form matters when the next value depends on the previous one: setCount(c => c + 1) Three updater calls can produce +3 because React processes them in order. Three setCount(count + 1) calls can produce only +1 because they use the same render snapshot.
1
2
Day 64 — Section 66: The Basics of React State Events let a component respond to an action. State answers the next question: how does it remember what happened? This section introduced `useState`, React's way of keeping values between renders.
1
14
The basic pattern: const [num, setNum] = useState(5); `useState` returns the current value and a setter. The initial value is used on the first render; it doesn't reset state every time the component runs.
1
5
Day 63 — Section 65: React Events A React page becomes interactive when it responds to user actions. This section focused on event props like onClick, onMouseOver, onChange, and onSubmit.
1
8
The key rule: onClick={handleClick} Pass the function; don't call it. onClick={handleClick()} runs during render. To pass an argument, use a wrapper: onClick={() => handleClick("M")}
1
6
Day 62 — Section 64: Shopping Lists, Keys & PropTypes This section showed how React lists stay reliable as data changes: map the data, give each item a stable key, split UI into components, and validate assumptions.
1
1
56
A key is more than a warning fix. React uses it to identify which list item is which between renders. Stable IDs let state and DOM stay with the item when rows are added, removed, or reordered.
1
2
Day 61 — Section 63: Working With Props A React component becomes reusable when its output stops being hard-coded. Props make that possible: data flows from parent to child, letting the same component produce different results.
1
6
Props are a component's input object. function Greeter({ person, from }) { ... } <Greeter person="Bill" from="Colt" /> The tag's attributes become keys on the props object.
1
3
Day 60 — Section 62: Local React Apps With Vite React components are one thing. Turning those components into a real application requires tooling around them. That was the focus of this section: understanding what Vite actually does.
1
7
Vite is a build tool, not a React framework. It handles project scaffolding, development, JSX transformation, fast updates, and production builds. React builds the UI; Vite provides much of the environment around it.
1
5
Day 59 — Section 61: JSX In Detail JSX looks like HTML, but it is actually JavaScript syntax for describing React elements. Understanding that made the rules feel less arbitrary and more logical.
1
10
Components don't have to live inside App. I learned to export components from their own files and import them where needed. Default exports use no braces. Named exports require braces and the exact exported name.
1
4
Day 58 — Section 60: Introducing React This section changed how I think about UI. Instead of manually updating the DOM, React lets me describe what the interface should look like for the current data and handles the updates.
1
10
React is a JavaScript library for building UIs. Its component-based approach breaks an interface into reusable pieces. A page can become a tree of components such as Navbar, Card and Footer, with data flowing from parents to children.
1
6
A project can work perfectly on a laptop and still not be ready for the real world. Day 57 — Section 59: YelpCamp: Deploying This section focused on what has to change when a local application becomes a deployed application.
1
8
The first major step was MongoDB Atlas. A local MongoDB instance only exists on my machine, so a deployed application needs a database that its hosting environment can reach. This introduced database users, connection strings and access rules.
1
2
Day 56 — Section 58: YelpCamp: Common Security Issues This section shifted from building features to asking a more important question: what can a hostile user do to the application? The answer starts with defense in depth.
1
16
This section is in line with my course of study so i really enjoyed this one😼
1
7
Day 55 — Section 57: YelpCamp: Styles Clean Up This section was about taking a functional YelpCamp and making it feel more complete through better styling, responsive layouts, cleaner CSS, consistent forms, and improved map usability.
1
12
I started with the home page. I learned how Bootstrap utilities such as flex-column, justify-content-center, align-items-center, and text-center can work together to position content and create a strong landing-page layout.
1
5
Day 54 — Section 56: YelpCamp: Fancy Cluster Map This section took YelpCamp from one campground marker to a map showing many campgrounds using GeoJSON clustering, layers, filters, interactions, and custom popups.
1
11
I learned why hundreds of HTML markers are not ideal. Mapbox can use a GeoJSON source with cluster: true to group nearby campground points automatically. This makes large sets of locations easier to explore.
1
10
Day 53 — Section 55: YelpCamp: Adding Maps I learned the full location pipeline: text location → geocoding → GeoJSON coordinates → MongoDB → interactive map in the browser.
1
16
MapTiler can be used as an alternative to Mapbox. I learned how to configure API keys, install the required client, and separate backend geocoding from frontend map rendering. With Mapbox, I also learned about public vs secret tokens.
1
1
9
Day 52 — Section 54: YelpCamp: Image Upload This section took YelpCamp beyond text by introducing image uploads, Cloudinary storage, image management, and thumbnails.
1
8
Image Upload Process I learned why images should not be stored directly in MongoDB or relied on local server storage. Cloudinary stores the images while MongoDB keeps their URL and public ID. Flow: Browser → multer → Cloudinary → MongoDB → View
1
7
Day 51 — Section 53: YelpCamp: Controllers & Star Ratings This section focused on restructuring YelpCamp with controllers and adding an accessible star-rating system.
1
19
Campgrounds Controller I learned to move campground handlers from the routes file into a dedicated controller. Routes handle paths, HTTP methods, and middleware, while controllers handle database operations, rendering, and redirects.
1
9
Day 50— Section 52: YelpCamp: Basic Authorization This section focused on controlling what users can do in an Express application based on ownership. I explored campground permissions, review authorization, reusable middleware, and preventing unauthorized access.
1
1
39
First, I learned how to assign campground ownership using an author field that references a User's ObjectId. The server assigns the logged-in user's ID, while Mongoose populate() retrieves author details when needed.
1
9
Good day everyone. Day 48 — Section 51: YelpCamp: Adding In Authentication. I learned how to integrate authentication into an Express application using Passport.js.
1
9
I learned the roles of three important packages: - passport: authentication middleware and session integration. - passport-local: username-and-password authentication strategy.
1
8
Good day everyone. I cannot believe that we’ve come this far, and I really appreciate how far I have come. Day 47 — Section 50: Authentication From “Scratch” This section focused on understanding authentication by building the process step by step.
1
34
I learned the difference between Authentication and Authorization. Authentication answers: “Who are you?” Authorization answers: “What are you allowed to do?” Authentication comes first, followed by authorization. I also learned about 401 vs 403 responses.
1
10
Day 47 — Section 49: YelpCamp: Restructuring & Flash This section focused on restructuring the YelpCamp Express application while applying sessions, flash messages, static assets, and reusable EJS partials.
1
14
The first step was breaking the large app.js file into separate routers. Campground routes were moved into routes/campgrounds.js and mounted with: app.use('/campgrounds', campgrounds) The router then uses paths relative to that mount point.
1
5