-
broken = `autoupdate` can't add a new or old version
If you open a PR please mention me (`/cc @klausenbusk`) so we can keep the list up-to-date.
### PR opened
### Pending
- [ ] [ally.js](htt…
-
# 从路由原理出发,深入阅读理解react-router 4.0的源码
------
  react-router等前端路由的原理大致相同,可以实现无刷新的条件下切换显示不同的页面。路由的本质就是页面的URL发生改变时,页面的显示结果可以根据URL的变化而变化,但是页面不会刷新。通过前端路由可以实现单页(SPA)应用,本文首先从前端路由的原理出发,详细介绍了前端路由…
-
对于构造函数,有这么一个问题:
如果一个构造函数没有使用new运算符,如何在构造函数内部改造使其实现和new一样的效果?
```
1.使用instanceof判断this是不是该构造函数的实例
function Person() {
if(!(this instanceof Person)) {
return new Person();
}
…
-
Hello everyone,
Hope you doing well ! Thanks for the amazing work :)
I was wondering if there is any way to override the browser used by oidc-react, in order to use default browser with webapps, a…
-
# 在单页应用中,如何优雅的监听url的变化
------
  单页应用的原理从早起的根据url的hash变化,到根据H5的history的变化,实现无刷新条件下的页面重新渲染。那么在单页应用中是如何监听url的变化呢,本文将总结一下,如何在单页页面中优雅的监听url的变化。
> * 单页应用原理
> * 监听url中的hash变化
> * 监听通过his…
-
写作目的:路由器的学习总是知其然不知所以然所以想借机好好了解一下器内部的原理。我草草看了一些文章我对其总结为 history ——> 包裹(react) ——> react-router
> 它有两种模式 1.hash 2.history
>
> 这两种模式对应着BOM对象中的两个对象 1.location 2.history
#### 1.1 location :它提…
-
# 目录
1. [版本说明](#版本说明)
2. [目录结构](#目录结构)
3. [初始化项目](#初始化项目)
4. [webpack](#webpack)
5. [react](#react)
6. [配置loader(sass,jsx)](#配置loader(sass,jsx))
7. [引入babel](#引入babel)
8. [使用HtmlWebpackPlugi…
-
-
**关注核心实现请直接跳至 第四小节:执行流程。**
> 本文中的命令仅适用于支持shell的系统,如Mac、乌班图及其他linux发行版。不适用于windows,如果想在windows下执行文章中的命令请使用git命令窗口(需安装git)或linux子系统(win10以下不支持)。
### 一、初始化工程
1、初始化工程目录
```bash
cd ~ && mkdir my…
-
## 前言
前端路由一直是一个很经典的话题,不管是日常的使用还是面试中都会经常遇到。本文通过实现一个简单版的 `react-router` 来一起揭开路由的神秘面纱。
通过本文,你可以学习到:
- 前端路由本质上是什么。
- 前端路由里的一些坑和注意点。
- hash 路由和 history 路由的区别。
- Router 组件和 Route 组件分别是做什么的。
!…