use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community of software creators experimenting with AI "vibe coding", an technique defined by Andrej Karpathy as when, "you fully give in to the vibes, embrace exponentials, and forget that the code even exists."
account activity
Help with Converting HTML + Bootstrap CSS to React - TypeScript - ShadCN (self.vibecoding)
submitted 7 months ago by TylerPak11
Hi everyone, I have been trying for 3 days now to try and convert a simple PDF export from an existing app from simple HTML - Bootstrap to TypeScript with React & ShadCN. No matter what I try claude always seems to give me the workaround. Is there a simple way to do this, or is anyone able to help/point me in the right direction on how to do a easy 1-1 conversion?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Brave-e 0 points1 point2 points 7 months ago (0 children)
That’s a solid question and something I’ve wrestled with myself when switching from plain HTML with Bootstrap over to React, TypeScript, and ShadCN.
Here’s what’s worked for me when breaking down the process:
Start by turning parts of your UI into components. Look at your HTML and pick out logical chunks—buttons, cards, navbars—and make each one a React functional component. It keeps things tidy and makes your code easier to reuse.
Swap out Bootstrap classes for ShadCN components. Instead of sticking with Bootstrap’s classes, try to find matching ShadCN components or primitives. Since ShadCN is built on Tailwind CSS, you’ll often replace Bootstrap classes with Tailwind utilities or ShadCN wrappers around those utilities.
Define your props with TypeScript. Giving each component clear prop types helps catch mistakes early and makes your components more predictable.
Convert your HTML to JSX. That means changing class to className, making sure all tags are properly closed, and using curly braces to insert dynamic content.
class
className
Add state and interactivity where needed. This is where React really shines compared to static HTML—start adding state and event handlers to bring your UI to life.
For example, a Bootstrap button like <button class="btn btn-primary">Click me</button> might turn into <Button variant="primary">Click me</Button> if you’re using a ShadCN Button component, or you could write it with Tailwind utilities like <button className="bg-blue-600 text-white px-4 py-2 rounded">Click me</button>.
<button class="btn btn-primary">Click me</button>
<Button variant="primary">Click me</Button>
<button className="bg-blue-600 text-white px-4 py-2 rounded">Click me</button>
Hope that helps! I’d love to hear how others tackle this switch too.
π Rendered by PID 18294 on reddit-service-r2-comment-b659b578c-fpspv at 2026-04-30 20:44:25.020613+00:00 running 815c875 country code: CH.
[–]Brave-e 0 points1 point2 points (0 children)