conditional-component-for-react
Version:
This project it's a simple if else component for React
62 lines (61 loc) • 1.48 kB
JSON
{
"name": "conditional-component-for-react",
"version": "1.0.2",
"license": "MIT",
"dependencies": {
"@testing-library/jest-dom": "^5.16.3",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
"prop-types": "^15.8.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-scripts": "5.0.1",
"web-vitals": "^3.1.1"
},
"main": "dist/index.js",
"module": "dist/index.js",
"keywords": [
"React",
"Component",
"Condition",
"reactComponent",
"simpleComponent"
],
"files": [
"dist",
"READMD.md"
],
"repository": {
"type": "git",
"url": "https://github.com/rodrigo-97/conditional-component"
},
"scripts": {
"start": "NODE_ENV=development BABEL_ENV=development react-scripts start",
"build": "rm -rf dist && NODE_ENV=production BABEL_ENV=production babel src/lib --out-dir dist --copy-files --ignore __tests__,spec.js,test.js,__snapshots__",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@babel/cli": "^7.17.6",
"@babel/core": "^7.17.8",
"@babel/eslint-parser": "^7.19.1"
}
}