NEW REACT PROJECT – Obligatory To-Do App

Category: | Posted on:February 7, 2024
to do app

The Obligatory To-Do App is a simple React project that I whipped up to test out Vite.

Objectives

The most popular React scaffold, create-react-app, is no longer being maintained, so work needed to find an alternative for spinning up smaller SEO-agnostic React builds. The to-do app is one of the most basic coding projects so I knew I could whip it up fairly quickly.

Development

The workflow for Vite is pretty much the same as create-react-app. You run the create command, it spins up a blank project, then you cd into the project and start the dev server. This is exactly what I was looking for. Vite is supposed to be leaner and more performant than create-react-app and I definitely felt that in the create and build processes. The app itself is pretty straightforward, though I did need a refresher on how to map out components. I intend to be better about keeping up with my React practice this year, and actually getting some React jobs at work should help.

Hurdles

I haven’t dug into how Vite’s caching works yet and I definitely need to because the styles in particular were not always updating. Vite has hot module swapping active by default and I’m not sure if that had something to do with it.

I also need to remember to change the base path of my apps before I run build on them and dump them on the server. I forget every time and spend ten minutes banging my head before it clicks.

Takeaways

Vite is a good decision for small react apps going forward. I need to dig further into the additional features it offers.

Related Logs


  • NEW PROJECT – Catholic Liturgical Date Checker

    May 29, 2024

    The Liturgical Date Checker project uses the Liturgical Calendar API to display information about Catholic Holy days. On page load it fetches info for today, tomorrow, and yesterday. It also has a search field that will return celebration info about a specific date. Objective This is just more basic API practice. I started this in […]

    Continue Reading
  • NEW PROJECT – Logo Finder

    March 7, 2024

    As part of my React API practice, I built a dirt simple Logo Finder using Clearbit’s Logo API. Simply enter a web domain, and the app will retrieve a logo image. Objective This is the third in a series of simple API fetching apps that I’ve built so far this year after the Public API’s […]

    Continue Reading
  • NEW PROJECT – Open Library Search

    February 25, 2024

    Added another API fetching project, Open Library Search. The app pings the Internet Archive‘s Open Library Search API to retrieve author, publication, purchase, and topic data for a user-provided book title. Objective My goal is to continue cranking out simple fetch projects until I can do them without relying on a crutch. I used my […]

    Continue Reading