
react
一鹿有你~
你不优秀,认识谁都没用。。。
展开
-
前端知识梳理
整理了一下面试题,由于太多,所以根据类型不同分为下面几类 点我去看=====>html篇章 点我去看=====>css篇章 点我去看=====>js篇章 点我去看=====>l篇章原创 2021-06-03 17:59:05 · 358 阅读 · 0 评论 -
react-router-dom路由参数
本文主要介绍react-router-dom路由传参数的方式以及它们的区别 路由传参有4种方式 1.search 2.state 3.params 4.query 1.search 推荐这种 因为很容易在地址栏中看到传过来的参数 路由path配置 <Route path="/staff/staff-detail"/> 或者path配置 <Route path="/s...原创 2020-03-05 17:37:18 · 3107 阅读 · 0 评论 -
react学习笔记
1.定义组件的方式 通过函数定义: //通过props获取组件传来的参数 function App(props){ return <div>props.name</div> } <App name="aaa"></App> 通过class定义 class App extends React.Component{ ren...原创 2018-12-06 18:54:08 · 185 阅读 · 0 评论