Starting from 0, use webback to build a React scaffold of your own

react-cli-diy Starting from 0, use webback to build a React scaffold of your own Source address Project use: git clone git@github.com:TigerHee/react-cli-diy.git cd react-cli-diy npm install Development mode launch: npm run dev Production packaging: npm run build Implementation steps: First, create a new project directory in which npm init i ...

Added by oshecho on Thu, 07 Nov 2019 10:20:26 +0200

Heaven and earth move! React can also use the computed attribute

Foreword, about calculation properties The first time I saw the word calculation property was in the official Vue document Calculation properties and listeners In the section, the article describes the calculation attributes as follows: Expressions in templates are very convenient, but they are designed for simple operations. Putting too m ...

Added by Lisa23 on Mon, 04 Nov 2019 03:55:45 +0200

Exploring the essence of react router

This article, origin, when clicking the routing tab, found that the components before rendering, print log did not come out, but the components and rendering. import React from "react"; import { BrowserRouter as Router, Route, Link } from "react-router-dom"; function ParamsExample() { alert("c") return ( <Router> <div&gt ...

Added by invisionx on Fri, 01 Nov 2019 20:32:45 +0200

How to do the front end of a large factory? Baidu senior front-end engineer, take you to write the micro front-end framework

Preface Focus on the core implementation and skip to the fourth section: execution process. The commands in this article apply only to shell enabled systems, such as Mac, Ubuntu, and other linux distributions. It is not applicable to windows. If you want to execute the commands in the article under windows, please use git command window (GIT ne ...

Added by wiztek2000 on Thu, 31 Oct 2019 05:05:51 +0200

React native react native swiper

RN project installation react native swiper carousel Library # Version 1.5.14 yarn add react-native-swiper // package.json { "name": "RNApp", "version": "0.0.1", "private": true, "scripts": { "start": "react-native start", "test": "jest", "lint": "eslint .", "postinstall": "n ...

Added by Jose Arce on Wed, 30 Oct 2019 22:27:11 +0200

The direction of this in class

When learning react recently, because react uses class to build components, it's a bit confused about the direction of this in class. Now make a summary. Binding priority of this There are four ways to bind this, and the priority decreases step by step.The essence of this is: this has nothing to do with scope, only with execution context. 1. Ca ...

Added by ziong on Tue, 29 Oct 2019 13:19:46 +0200

Some knowledge of React beginners

By valentinogagliardiTranslator: front-end witSource: medium . bind(this) is not required when using arrow functions Generally, if there is a controlled component, it has the following structure: class Foo extends React.Component{ constructor( props ){ super( props ); this.handleClick = this.handleClick.bind(this); } handleClick(e ...

Added by Archy on Thu, 24 Oct 2019 04:08:44 +0300

React16 source code parsing Scheduler

Welcome to read the React source code analysis series:React16 source code analysis (I) - illustration of Fiber architectureReact16 source code analysis (2) - create updateReact16 source code analysis (III) - ExpirationTimeReact16 source code analysis (IV) - SchedulerReact16 source code analysis (V) - update process rendering stage 1React16 sour ...

Added by goldlikesnow on Fri, 18 Oct 2019 20:55:03 +0300

[THE LAST TIME]this: call,apply,bind

Preface The last time, I have learned [THE LAST TIME] has always been a series that I want to write, aiming to build up and review the front end. It is also to check and fill in the gaps and share the technology. Welcome to comment on Tucao. The series of articles are first published in the public account [full stack front-end selection], the ...

Added by majocmatt on Thu, 17 Oct 2019 05:30:55 +0300

Value transfer of react component

react subcomponent passes value to parent component // Parent component class App extends Component { constructor(props) { super(props) this.state = { test: '123' }; } parentClick(arg) { this.setState({ test: arg }) } ...

Added by jonker on Wed, 16 Oct 2019 18:55:10 +0300