React

Latest Posts

The Pros and Cons of CSS in JS

Jarod Peachey
12/27/2020

CSS-in-JS, or CSS inside Javascript files, has been one of the most popular methods of front-end development over the last few years. With the rise of front-end frameworks, static site generators, and Javascript in general, it’s hard not to use CSS-in-JS.

But should you use it?

JSS certainly has it’s be...

Slide-Out Mobile Menu Using React Hooks

Jarod Peachey
12/27/2020

If you're a front-end developer, I can almost guarantee that you've worked with a mobile menu at some point in your career. If you have, you know first-hand that, sometimes, crafting mobile menus can be a little difficult.

Just this month, I was working on a website of mine, and I came across one of these issues. I wanted to create a mobile menu...

Styled Components in 5 Minutes

Jarod Peachey
12/27/2020

Let's get right to it. CSS has become a bit of a weird "language" lately, with the rise of front-end frameworks. You can write it in CSS files and import it, or use CSS modules, or even inline-styling. You can even write CSS directly in javascript files.

Each option has it's pros and cons, but today we're looking at my personal favorite option, ...

Simple Countdown using React Hooks

Jarod Peachey
12/27/2020

React Hooks are an amazing way of managing state, context, refs and just about everything else in React. They're very versatile, and if you use them right, you can really power-up your website.

In this tutorial, we're going to create a basic countdown using two hooks: useState and useEffect.

The Basics

The two hooks we're using are two o...