-
## The dependency [prop-types](https://github.com/facebook/prop-types) was updated from `15.6.2` to `15.7.0`.
🚨 [View failing branch](https://github.com/dashed/react-hashchange/compare/master...dash…
-
## Context
Core issue is in this ticket:
- https://github.com/Joystream/pioneer/issues/3238
## Scope
- Add anchors to account lock details page so that user can be directed to an expanded …
-
-
`react-router` v4,我称之为“第四代react-router”,`react-router`和`react-router-dom`的区别是什么呢?
为什么有时候我们看到如下的写法:
写法1:
```js
import {Switch, Route, Router, HashHistory, Link} from 'react-router-dom';
```
…
-
[react] React-Router 4中``组件有几种类型?
-
Con todo el boom de JS en el server y en el cliente, y agregándole el hermoso poder de React, hoy en día tenemos que preocuparnos en que nuestra aplicación comparta código (entre el cliente y el serve…
-
>前端路由库的作用是改变地址栏,支持浏览器前进、后退,并同步路由对应的视图,这里以react-router及其依赖的history库说一下路由机制
## 前提
首先简单介绍一下前端路由机制所依赖的pushState、popstate事件、hash及对应的hashChange事件
1. pushState,popstate
- 对于支持html5 新增pushStat…
-
## 一个极简前端路由实现
说一下前端路由实现的简要原理,以 hash 形式(也可以使用 History API 来处理)为例,当 url 的 hash 发生变化时,触发 hashchange 注册的回调,回调中去进行不同的操作,进行不同的内容的展示。直接看代码或许更直观
```js
function Router() {
this.routes = {};
th…
-
[react] React-Router的实现原理是什么?
-
# ios的微信下面修改title不生效bug
同样是微信,安卓和ios的设置title会有非常大的区别,安卓系统的微信,只要调用document.title=“xxx”就可以轻松的改变页面的title,但ios系统不能,时好时坏的,非常不稳定;
通过百度,站在巨人的肩膀上,封装了一个简单的,针对修改微信title的工具
## 源码如下
``` javascript
$.extend($, …
mishe updated
6 years ago