Remix A first look

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
Search for a command to run...

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.
No comments yet. Be the first to comment.
Most of you know me for my consistency, a golden arrow in my blog series. I've written 1000 articles in 1008 days! Almost an article a day, and my honeymoon was the only holiday I ever took. I'm super proud of this achievement; it has been a fantasti...

It's not the first time I'll be talking about community. I think it's an essential aspect of any successful tool. This shows in my previous explorations of Astro, Medusa, and now Vendure as well. All these products thrive in a super open, welcoming, ...

The cool part about Vendure is how easy it is to set up and how abstract each layer is. Basically, we get the following elements: External database Server Worker Admin UI Frontend While this is amazing, it also brings a bit of complexity when it co...

The previous article looked at customizing Vendure on a data and process level. In this article, we'll look at customizing emails, as they are often a big part of a webshop system. We'll be looking at two different layers of customization for customi...

Even though Vendure is a pretty significant project out of the box, in some cases, we might want to go in and modify some elements to work to our specific use case. In this article, I'll take a high-level look at some elements we can customize within...

You might have heard about it remix, the new kid on the React ecosystem block.
This framework comes from some big names in the React world. After giving a lot of training in React and helping people see build websites, they decided to make one new bridge for websites.
It's heavily focused on handling dynamic front and back ends. With these four points as their primary focus:
So, what do these four have in common?
They allow us to Make Better Websites, which happens to be the slogan of Remix, and I love this premise.
Who doesn't love a basic starter? For me a great way to explore and try out Remix.
Remix comes with some basic templates out of the box, which at the time of writing are:
You are not limited to using any of these stacks, but it can be easy to pick one when getting started.
Note: You can always change/upgrade the stack
Start by creating a new remix project called remix-website on the indie stack.
npx create-remix --template remix-run/indie-stack remix-website
Once the installation is done, we can run the app with the following command:
npm run dev
Now visit: http://localhost:3000 and you should see something like this.

Now that we are fully functional let's add our first route.
Before we do that, let's add a link to our homepage to go to the about page.
You can find the index at: app/routes/index.tsx.
<div className="mx-auto mt-16 max-w-7xl text-center">
<Link
to="/about"
className="text-xl text-blue-600 underline"
>
About
</Link>
</div>
Note: Good to note Remix comes with Tailwind by default in this stack
Now we can create this page inside the routes directory and call it about.tsx.
export default function About() {
return (
<main>
<h1>About page</h1>
</main>
);
}
If we now refresh our application, we can click the about link and see this new page.
You can always find the code on GitHub.
Now that we have the most basic setup done, we'll start looking into the following.
These will be shared among the upcoming articles, so keep an eye out if you want to learn Remix with me 🤘.
Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter