Sitemap
codebro.io

codebro.io

♡ playing with web technologies. Especially anything graphics, game or education

Ultimate Static Site Starter

Seven Steps to { Web Development } Heaven

2 min readDec 5, 2019

--

Packages

Gatsby / React / Typescript / Prettier

This combo is popular, has a large dev community and offers a very fast development environment.

Get codebro.io’s stories in your inbox

Join Medium for free to get updates from this writer.

Gatsby also offers a large selection of plugins for seamless scalability.

Press enter or click to view image in full size
Photo by Debby Hudson on Unsplash

Styled Components

Goes with React like Mac and Cheese. One file for both style and structure, automatic className prefixing and dynamic prop passing. Easy to scope, scale and share cross-module.

Framer Motion

The most fun library I have ever used. With useful props like whileHover and whileTap for instant gratification. Can handle mount, key change and chained animations + much more.

—— Gatsby / React / Typescript ——step 1 Install Gatsby CLI (if you don't already have the Gatsby CLI)
yarn global add gatsby-cli
step 2 Initialize our Gatsby / React
gatsby new gatsby-site && cd gatsby-site
step 3 Add Typescript
yarn add gatsby-plugin-typescript
(After adding this to gatsby.config.js (see step 5) you are free
to change .js files to .ts and so on...)
—— Styled Components ——step 4 Add Styled Components
yarn add gatsby-plugin-styled-components styled-components babel-plugin-styled-components --save
step 5 Add to our plugins listin gatsby.config.jsmodule.exports = {
...
plugins: [
...
`gatsby-plugin-typescript` <---------- Insert these lines
`gatsby-plugin-styled-components` <--- inside plugins array
],
}
—— Framer Motion ——step 6 Add Framer Motion
yarn add framer-motion --save
step 7 Hello World!
npm run develop

The above gives you the foundation to make a seriously cutting-edge website or web app in seven easy steps.

Who says front-end tooling in 2019 has to be complicated?

--

--

Written by codebro.io

♡ playing with web technologies. Especially anything graphics, game or education