1.0.0 • Published 3 years ago
limch-ui5-react-test v1.0.0
reactjs-test
Steps
- npm init -y
- npm i -D typescript react react-dom @types/react @types/react-dom
- npx tsc --init
- npm install --save prop-types
npm install --save-dev @types/prop-types
Configure tsconfig.json
"target": "es2015",
"module": "esnext",
"lib": ["es2020"],
"jsx": "react",
"jsx": "react",
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"outDir": "lib",
"include": ["src"]
- Configure package.json
"main": "dist/index.js",
"types": "dist",
"scripts": {
"build": "tsc -p ."
},
- Add testing code
src/index.tsx
1.0.0
3 years ago