Skip to content

Instantly share code, notes, and snippets.

View hj24's full-sized avatar
🎯
Focusing

hj24 hj24

🎯
Focusing
View GitHub Profile

How to

  1. yarn add --dev @svgr/cli
  2. Config in package.json
"scripts": {
    "svgr": "npx @svgr/cli --out-dir src/components/icons --ignore-existing -- src/assests/icons"
}
  1. yarn svgr
@hj24
hj24 / React-ts-template.md
Last active April 30, 2023 14:28
Template of react ts project

Init project

Create typescript project

yarn create-react-app project-name --template typescript

Use Create React App Configuration Override

  1. yarn add @craco/craco
  2. Override config, replace react-scripts with craco except eject
{
    // ...