no message
This commit is contained in:
@@ -22,10 +22,8 @@ class App extends Component{
|
||||
<NavLink to='/ref2'>ref-内联函数</NavLink>
|
||||
<NavLink to='/ref3'>ref-函数</NavLink>
|
||||
<NavLink to='/ref4'>createRef</NavLink>
|
||||
|
||||
<NavLink to='/life'>生命周期函数</NavLink>
|
||||
<NavLink to='/github'>github搜索demo</NavLink>
|
||||
<NavLink to='/confirm'>Confirm</NavLink>
|
||||
<NavLink to='/todo'>Todo</NavLink>
|
||||
<NavLink to='/toast'>Toast</NavLink>
|
||||
<NavLink to='/hoc1'>高阶组件1</NavLink>
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
import React from "react";
|
||||
class App extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<h1>Hello World</h1>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
export default App
|
||||
@@ -10,7 +10,6 @@ import This from "../pages/this"
|
||||
import Life from "../pages/life"
|
||||
import Hoc1 from "../pages/hoc1"
|
||||
import Github from "../pages/github"
|
||||
import Confirm from "../pages/confirm"
|
||||
import Toast from "../pages/toast"
|
||||
const routes = [
|
||||
{
|
||||
@@ -61,10 +60,6 @@ const routes = [
|
||||
path: "/github",
|
||||
component: Github
|
||||
},
|
||||
{
|
||||
path: "/confirm",
|
||||
component: Confirm
|
||||
},
|
||||
{
|
||||
path: "/toast",
|
||||
component: Toast
|
||||
|
||||
Reference in New Issue
Block a user