import React,{useState}from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Home from './1';
import {BrowserRouter} from "react-router-dom"
import reportWebVitals from './reportWebVitals';
function App(props) {
let [val,setVal] = useState(0)
return (
<div className="App">
<div>
当前次数:{val}
<button onClick={()=>{setVal(val+1)}}>点此计数</button>
</div>
</div>
);
}
ReactDOM.render(<App />,document.getElementById("root"));