@vin_coder/pg-cli-template-project-react
Advanced tools
+2
-2
| { | ||
| "name": "@vin_coder/pg-cli-template-project-react", | ||
| "version": "0.0.37", | ||
| "version": "0.0.38", | ||
| "description": "react 项目模板文件", | ||
@@ -28,3 +28,3 @@ "main": "index.js", | ||
| "homepage": "https://github.com/vin1992/pg-cli#readme", | ||
| "gitHead": "4b4d60d68ab92222abc76eea9477c3e44ff45be4" | ||
| "gitHead": "47aebb3b865f549d0f24ccc3996591baf12fe8f3" | ||
| } |
| import React, { Component } from "react"; | ||
| class Home extends Component { | ||
| render() { | ||
| return <div>Home Page</div>; | ||
| } | ||
| } | ||
| export default Home; |
| import React from "react"; | ||
| import { Switch, Route } from "react-router-dom"; | ||
| import Home from "./home"; | ||
| const Routes = ({ location }) => ( | ||
| <Switch location={location}> | ||
| <Route exact path="/account" component={Home} /> | ||
| </Switch> | ||
| ); | ||
| export default Routes; |
| h1 { | ||
| font-size: 16px; | ||
| } |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
1893
-18.79%4
-42.86%4
-80%1
Infinity%