Processing of Lists and Keys

Processing of Lists and Keys First, let's review how to traverse lists in JavaScript. In the following code, we use the map() function to get an array of numbers and double their values. We assign the new array returned by map() to the variable doubled and record it: const numbers = [1, 2, 3, 4, 5]; const doubled = numbers.map(item = ...

Added by reag27 on Tue, 18 Jun 2019 02:09:41 +0300

React Practice Project (1)

React already has nearly 70,000 star ts on Github, and is the most popular front-end framework at present. And I've been learning React for a while. Now I'm going to fight with React+Redux! Article Address: https://github.com/DigAg/diga...Project code address: https://github.com/DigAg/diga... First, we started building a basic project. We use c ...

Added by sayoko on Mon, 17 Jun 2019 23:23:42 +0300

iscroll carton? Use JRoll to encapsulate the react plug-in and escape from Carton's routine!

I'm very sorry to have paid attention to the columnists, but there have been few updates in the last month. This time share a react mobile end encapsulated rolling plug-in. When we do vertical rolling on the mobile end, there will be various problems, such as carton, penetration, compatibility, and the most intolerable is carton, such as the us ...

Added by MathewByrne on Mon, 17 Jun 2019 03:32:34 +0300

Summary of webpack2

This article github warehouse: https://github.com/Rynxiao/webpack2-learn Migration from v1 to v2 1. Configuration type In webpack1, configuration is done mainly by exporting a single object. For example, the following configuration: // Export mode of webpack1 module.export = { entry : 'app.js', output : { */... */}, /* ... */ }; In ...

Added by David4321 on Thu, 13 Jun 2019 21:09:08 +0300

Several configurations of react-router

The concept of routing The purpose of routing is to map URLs to functions. Routing is an essential part of a single-page application. Routing configuration is a set of instructions that tells router s how to match URLs and the corresponding function mapping, that is, to execute the corresponding code. react-router Each JS framework will have it ...

Added by LarsLai on Tue, 11 Jun 2019 20:22:06 +0300

Global Shared State Management Practice of Multi-Page Small Programs Based on Mobx

what The name is very long and interesting. In general, this article is a summary of the use of mobx in the development of small programs. State management, as the name implies, is the management of the complex state of front-end pages. Here, I will not dwell on it. So although it's used in small programs, I think it's also a loss of inspirati ...

Added by Logical1 on Mon, 10 Jun 2019 03:41:08 +0300

react-router use tutorial

react-router use tutorial About the role of # in url s: Study: http://www.ruanyifeng.com/blo... '#'represents a location in a Web page.The character to the right is the identifier for that location Change #Does not trigger page overload Changing #will change the browser's access history window.location.hash reads #value window.onhashchange = ...

Added by selenin on Sun, 09 Jun 2019 20:20:02 +0300

[Full Stack React] Day 15: Introduction to Promise

This article is reproduced from: Mass translationTranslator: iOSDevLogLinks: http://www.zcfy.cc/article/3814Original: https://www.fullstackreact.com/30-days-of-react/day-15/ Today, we'll look at what we need to know to learn about Promises at a high level, so we can use this very useful concept to build our applications. Yesterday We installed ...

Added by mattkenefick on Fri, 07 Jun 2019 20:28:49 +0300

One-page Application (SPA) Construction Based on Reaction Technology Stack Quick Start Practice

Summary This article uses create-react-app as scaffolding, and combines react + redux + react-router to build a simple single-page application demo. The article will step by step explain how to build such a one-page application. The corresponding demo address will be given at the end of the article. This paper mainly explains the practical proc ...

Added by jansky on Tue, 04 Jun 2019 21:14:24 +0300

Impressive Writing of Simple Reaction Components-Reaction-document-title Component Implementation

Because react is a one-page application, we may need to change the title of the document according to different routes, so you may use it at this time. react-document-title Plug-in unit. The main file code of this plug-in is 41 lines, which mainly imports the following three dependency packages: var React = require('react'), PropTypes = require ...

Added by lynn897 on Tue, 04 Jun 2019 00:34:14 +0300