Ultimate Static Site Starter
Seven Steps to { Web Development } Heaven
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.
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-clistep 2 Initialize our Gatsby / React
gatsby new gatsby-site && cd gatsby-sitestep 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 --savestep 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 --savestep 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?










