Bitovi Blog - UX and UI design, JavaScript and Front-end development


How to Generalize Component Props With Type Safety

August 29, 2023

Creating reusable components is often hindered by excess code accounting for each use case the components need to support. For example, a dropdown that supports text, links, buttons, and even complex...

Meet React to Web Component v2

June 13, 2023

Greetings, dev community! The highly-anticipated release of the new React to Web Component (@R2WC/react-to-web-component) API is here! We have been thrilled by the level of adoption version 1.0 has...

Mocking Modules in Jest Tests

June 13, 2023

You’ve probably found your way to this post because you're trying to create mock code for tests that use the Jest framework and are having difficulty getting your mock to work the way you want. This...

How to Set Up Authentication for a React App with Auth0

May 31, 2023

Authentication is a critical part of any web application. It's important to ensure that user authentication is secure, scalable, and easy to manage. In this blog post, we'll explore how to set up...

Don’t Overload the API: Sequential & Batched Promises

May 5, 2023

The other day I was uploading a lot of content, including images, to a 3rd party service. I put together all my objects and mapped through them to fire off requests. Nearly immediately, I blew past...

React Native: 7 Common Questions Answered by a React Consulting Expert

April 17, 2023

Are you curious about using React Native for your next project? Whether it's an enterprise solution or a To-Do app, React Native might fit you. React Native is your one-stop solution for building...

Level Up Your React Game with Remix, Prisma, & Supabase Postgres DB

April 3, 2023

Remix might be the hottest new framework in the React world right now. We’re ramping up on it and expecting to use it for more clients in the future. We like Remix for its speed and simplicity, but...

5 Quick Tips for Writing More Readable React Code [ChatGPT Experiment]

March 20, 2023

ChatGPT is hot right now, so I thought I should experiment with letting it write a blog post. It did surprisingly well. The following is more than half AI-generated. For the most part, the first...

Review Buddies: Pair Programming for the Rest of Us

March 6, 2023

Looking for a way to increase developer productivity and improve your code review process? Try Review Buddies.

React Hooks vs. Classes: The Ultimate Comparison [with Code Examples]

February 20, 2023

Lately, I’ve seen a lot of conflicting talk in React forums around class components and hooks. For junior and more advanced React devs, I would like to clarify by answering some of the most commonly...