ARTICLE
Making a React App Findable: Real HTML Pages Before JavaScript Runs
How I made a React scorekeeper visible to search: real HTML guides generated at build time, private app routes marked noindex and structured data that matches the page.
Tags
- SEO
- React
- Vite
- Static Generation
- Structured Data
Published November 24, 2026.
A scorekeeper is a React app, and a React app starts life as an empty page. Search engines can run JavaScript, but a page that is only a blank shell until scripts finish is slow to understand, and it tells readers nothing if scripts fail. So the public side of the Hazari scorekeeper is plain HTML.
Two kinds of page
- Public pages: the home page, guides on scoring, rules, card points and live sharing, plus About, Privacy and Contact, each in English and Bangla. They are real HTML before any JavaScript runs.
- App pages: the saved games, scoring screens and shared scoreboards. They are private, marked noindex, and left out of the sitemap.
Generated at build time
The public pages are written from translated source files by a build script, which also produces the robots file, the sitemap and the hosting configuration. Editing a guide means editing one source file and rebuilding. Public pages do not load React, the database, or the cloud code, and their initial JavaScript is held under a 15 KB limit by a build check.
Each page earns its place
- A unique title, description and H1.
- Its own canonical address.
- Reciprocal English and Bangla alternates so each language points to the other.
- Social preview metadata.
- Structured data that describes what is actually on the page. There are no invented reviews or ratings.
Letting crawlers read the noindex
The robots file allows crawling. That sounds backwards, but a crawler can only obey a noindex instruction if it is allowed to fetch the page and read it. The sitemap lists only public pages, and never a game identifier or a shared link.
Checks that fail the build
The build verifies the content, metadata, language links, structured data hashes, sitemap, manifest and the JavaScript limit. Browser tests load every public page with JavaScript disabled, in both languages and both themes, and check that real content is there.
What it does not do
None of this guarantees a ranking. It removes technical obstacles and makes the pages honest and readable. The rest depends on whether people find the pages useful, and on time.
This portfolio uses the same idea for its own pages. For the app itself, see how it was built, and for the offline engineering, the offline-first notes.
Play it or score it
Play Hazari alone against the computer, or keep score and share the banter with your friends. It is free and works offline.
More Hazari guides
Odds and numbers
- How Rare Is a Troy? The Odds of Every Three-Card Hand in Hazari
- Why Every Hazari Deal Is Worth Exactly 360 Points
- How Many Deals Does a Game of Hazari to 1,000 Take?
- 200,200 Ways to Arrange 13 Cards: Why Hazari Is Harder Than It Looks
Strategy
- How to Arrange Your Cards in Hazari: A Practical Guide to 3-3-3-4
- The Four-Card Group in Hazari: Weakest by Rule, Biggest Prize in the Deal
- 7 Mistakes New Hazari Players Make When Arranging Cards
- One Hazari Deal, Round by Round: A Worked Example with Real Cards
Scoring and house rules
- Scoring Hazari Round by Round: One Full Game to 1,000, Worked Through
- How to Settle a Hazari Scoring Argument in Two Minutes
- Hazari House Rules Checklist: Agree These 8 Things Before the First Deal
- Paper or App? How to Keep Hazari Score Without Arguments
Playing with friends
- Roasting Your Friends at the Hazari Table: Funny Leaderboard Tags
- Let Friends Watch Your Hazari Game Live: How to Share a Scoreboard
- Play Hazari Alone: Practise Against Three Computer Players
Behind the app
- How I Built an Offline Hazari Scoring App Friends Can Watch Live
- How the Hazari Computer Opponent Chooses Its Cards
- Building an Offline-First Scorekeeper: IndexedDB, a Service Worker and No Backend
- Designing a Read-Only Live Scoreboard With Guest Sharing
- টেক্কা, সাহেব, বিবি, গোলাম: Making a Card Game App Natural in Bangla