Jul 5, 2020Better Gatsby + Typescript SetupA guide to writing your gatsby config files in typescript and auto-generate interfaces from your graphql queries If you’re anything like me you probably love using Gatsby.js for React front end web development and love using Typescript for all of it’s type safe goodness. Here’s a few tips I recently…Gatsby3 min readGatsby3 min read
Jul 18, 2019Upgrading your development environmentMy favorite extensions, themes, tips for a beautifully productive development environment Programs Programs I use on a daily basis Visual Studio Code Alfred 4 Insomnia TablePlus GraphQL IDE CleanMyMac VS Code SetupDevelopment2 min readDevelopment2 min read
May 18, 2019Gatsby DarkmodeCreate a dynamic dark-mode theme in gatsby using redux, and styled components — Getting Starting In your Gatsby project run npm install --save react-redux redux styled-components Or yarn add redux react-redux styled-components Step 1. Create a new folder in your src/ directory called state Within this folder create the following files src/ └── state/ ├── reducers.js ├── actions.js └── ReduxWrapper.jsGatsbyjs3 min readGatsbyjs3 min read
Mar 28, 2019Responsive Container Component with React and Styled-Components.Setup First things first you’re going to need to install the styled-components node package. npm install — save styled-components The way I like to structure my files for something like this is to create a Theme.js file in my sr/ directory. Now we are able to start creating our Theme object. This will act like sass / scss / less variables and we will be able use them across all of our components. UsageReact1 min readReact1 min read
Mar 19, 2019Simple Navbar Component using React, TypeScript, and styled-components.Simple Navbar Component using React, TypeScript, and styled-components. In this project we will create a simple little Navbar component that has a logo or brand name and features horizontal scrolling.Java Script6 min readJava Script6 min read
Mar 16, 2019React auto-hide on scroll navbar with styled-components.This will create a react-component Navbar that will be hidden when the user scrolls down and visible when the user scrolls up. Dependencies styled-components npm install styled-components --save In your App.js create the following constants; // App.js import Navbar from './Navbar'; const navlinks = [ { name: "Home", to: "/" }…React3 min readReact3 min read