Skip to content

Instantly share code, notes, and snippets.

@wickedst
wickedst / styledComponentTypeScript.tsx
Created November 8, 2021 20:32
Styled-components React TS example
import styled from "styled-components";
interface TitleProps {
isActive: boolean;
}
export const Title = ({ isActive }: TitleProps) => {
return (
<TitleContainer isActive={isActive} id="dashboard-title">
<h1>Dashboard</h1>
@wickedst
wickedst / next.config.js
Last active May 27, 2022 16:47
Now V2 next.js config for postlight/headless-wp-starter
// just adds target: "serverless"
const path = require('path');
const glob = require('glob');
module.exports = {
webpack: config => {
config.module.rules.push(
{
test: /\.(css|scss)/,