Urgent.News

What's breaking now, across hundreds of outlets.

Tech

I Built My First Real Website With React From Scratch

In my earlier episodes, I learned React piece by piece — components, props, state. But everything was small examples. So I took the next step: I built a complete, real website — a landing page for a digital agency — and I want to show you exactly how. This is the written companion to my YouTube episode (React from Scratch #5, in Moroccan Darija): https://youtu.be/UCKbmOi8l4k 1. Start a new…

In this article, the author shares their experience of building a real website from scratch using React. They begin by setting up a fresh React project, removing unnecessary demo content, and organizing the project into smaller components. The header component is created first, containing the agency logo and navigation links. The author explains the importance of keeping the header in its own file for easy modification and reuse.

Next, they describe the hero section, which features a clear title, brief description, and a button linking to the Services section. The Services section showcases the agency's three offerings by utilizing a reusable ServiceCard component. The Footer component consists of the agency name, a short line, and contact information. Throughout the process, the author emphasizes the significance of dividing the website into distinct components, making the code more organized and efficient.

Finally, they stress testing the website's responsiveness on various devices. The author challenges readers to modify the site's appearance, add new sections, and create a component for an additional page. They conclude by mentioning their own expertise in React, Node.js, and Laravel, as well as their contributions to open-source projects and teaching React in their native language.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Three small privacy-friendly Firefox add-ons I built this week

I published three small Firefox add-ons this week. They are new, they have no users yet, and each one does one narrow job.

  • Tab Sessions allows saving and restoring up to 5 named browser sessions
  • Snippets for Gmail appends saved text to Gmail compose box without sending data
  • Creator Stats for YouTube displays views per day and ranking without API use

Patzer v7.20: seven languages, LM Studio as a coach, and the first release built mostly by other people

The last time I wrote one of these posts, v7.19 was my release. This one is different: v7.20.0 shipped on 22.11 and the changelog opens with a thank-you list — @SaberGuirat, @OnyxOracle, @66ton99…

  • Patzer v7.20 released on November 22nd, most features from collaborative efforts
  • Seven languages added: French, Ukrainian, English, Bulgarian, Spanish, German, Russian
  • LM Studio integrated as AI coach for move explanations and game reviews

What your money does in a perpetual futures exchange?

Imagine you think Bitcoin’s price will rise. You could buy Bitcoin and sell it later. Or you could trade a perpetual future, often called a perp.

  • Funds deposited as collateral in USDT cryptocurrency
  • Long position implies expectation of Bitcoin price increase
  • Short position suggests belief in Bitcoin price decline

More from Monday 23 November →