Skip to content

Instantly share code, notes, and snippets.

import React, { ReactNode } from 'react'
interface ProjectProps {
children: ReactNode;
name: string;
}
function Project(props: ProjectProps): JSX.Element {
const { children, name } = props;
@marcobiedermann
marcobiedermann / structure.md
Created May 19, 2022 13:47
React Project Structure

Folder Structure

Structure by features/domain

.
└── src
    └── features
        ├── orders
 │   ├── Orders.tsx
@mrbusche
mrbusche / softskill.txt
Created January 27, 2020 03:28
Interview soft skill questions
Original Source: https://deanhume.com/my-favourite-soft-skills-interview-questions/
Questions such as:
Why are you leaving your old workplace?
Why are you interested in working here?
How would your colleagues describe you if I asked them to tell me about you?
What criticisms or strengths might they mention?
Do you have any goals that you would like to achieve in the next few years?
What made you want to be an [insert role here]?
@shilman
shilman / storybook-docs-typescript-walkthrough.md
Last active January 29, 2025 02:47
Storybook Docs Typescript Walkthrough

Storybook Docs w/ CRA & TypeScript

This is a quick-and-dirty walkthrough to set up a fresh project with Storybook Docs, Create React App, and TypeScript. If you're looking for a tutorial, please see Design Systems for Developers, which goes into much more depth but does not use Typescript.

The purpose of this walkthrough is a streamlined Typescript / Docs setup that works out of the box, since there are countless permutations and variables which can influence docs features, such as source code display, docgen, and props tables.

Step 1: Initialize CRA w/ TS

npx create-react-app cra-ts --template typescript
@argyleink
argyleink / easings.css
Created February 26, 2018 22:34
Handy CSS properties for easing functions
:root {
--ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53);
--ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19);
--ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22);
--ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
--ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);
--ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335);
--ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
--ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
--ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
@marcobiedermann
marcobiedermann / snippets.md
Last active May 25, 2022 19:57
Mac OS Command Line Snippets

Compression

Archive tar and gzip

tar -czf output.tar.gz input_folder1 input_folder2 input_file …

Extract tar and gzip

@marcobiedermann
marcobiedermann / social-share-links.md
Last active May 25, 2022 19:58
social-share-links.md
### Headings
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
<h3>Headings</h3>
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
<h3>Text</h3>
@marcobiedermann
marcobiedermann / head.html
Last active May 25, 2022 19:59
website-head-tags
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Website</title>
<base href="/">