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

Alibaba cloud deployment 3.redis

redis Download and compile wget http://download.redis.io/releases/redis-4.0.2.tar.gz tar xzf redis-4.0.2.tar.gz cd redis-4.0.2 make Startup service Start redis in the background cd redis-4.0.2/ src/redis-server & Query redis process ps -ef | grep redis You can see that redis has been started. root 19141 19065 0 12:50 pts/1 00:00:03 ...

Added by rocco2004 on Wed, 23 Oct 2019 20:00:19 +0300

mpvue quick start

Main characteristics Using mpvue to develop applets, you will acquire the following capabilities based on the technical system of applets: Thorough component development ability: improve code reusability Complete Vue.js development experience Convenient Vuex data management solution: easy to build complex applications A quick mechanism to bui ...

Added by BlackKite on Mon, 21 Oct 2019 10:44:30 +0300

Introducing Dva into React Project

background The React project that we are working on now is a long-standing project. Redux The experience of writing code is not very good, so I want to upgrade the introduction of dva. DVA used to be used dva-cli Generate dva projects directly, or use ant design pro When using umi to generate react + antd + dva project directly, it saves a lot ...

Added by brash on Tue, 15 Oct 2019 10:45:45 +0300

Running interval timer with worker in Vue environment

Running interval timer with worker in Vue-Cli environment Today, in code review, we found some problems left over before: In a video playback page, there is a 40ms interval that has been blocking, resulting in a gradual increase in video delay. So I wrote a worker and pulled the timer out and ran alone. The implementation steps are as follows B ...

Added by Jonob on Sun, 13 Oct 2019 22:03:44 +0300

Realization of Classification Menu of Goods on the Left Side of E-Commerce

Whether on the pc side or the mobile phone side, there are similar categories on the left side, clicking on the right side to switch the content of the functional page. To achieve this function, the first step is to master the method of left and right layout. Left and right layout Flexible Layout is recommended .parent { display: flex; } ...

Added by AustinP on Fri, 11 Oct 2019 18:13:49 +0300

Taste the new features of vue3.x - Composition API

Original address http://www.liulongbin.top:8085 0. Basic requirements Understanding common ES6 new features ES6 import and export grammar Destructuring assignment Arrow function etc... Understanding the basic use of vue 2.x assembly Commonly used instructions Life cycle function computed, watch, ref, etc. 1. Relevant resources [Know - ...

Added by y4m4 on Thu, 10 Oct 2019 14:19:49 +0300

Front-end girls let me optimize the project.

Today, the front-end girls let me optimize the project, think nothing of it, early in the morning to the company, the boss has arrived, I listened to Tingfeng Tse's song "Live via", happy to live really good, do not think, after the National Day mood is really good, rest, I quickly scrapped, hit the code, do not hit the code out of th ...

Added by Win32 on Wed, 09 Oct 2019 13:32:17 +0300

Using Vue technology stack handle to develop tourism website from scratch

vue-travel travel travel website github Write_hand: Project Introduction This project is a web application that realizes online booking of tourism vacation products, leisure tourism booking platform, providing domestic, foreign, peripheral tourism and tourism strategy functions. Project demonstration Demo address Project function: 1: User Mo ...

Added by PHPcoder25 on Tue, 08 Oct 2019 01:38:07 +0300

Two Small Cases of Vue's Initial Experience

Two small cases for loop in Vue We want to achieve a function like this: The text in an array is traversed and a corresponding number of li tags are created. Then, the text is assigned to the li tag: Native JS imperative writing: <!DOCTYPE html> <html> <head> <meta charset="utf ...

Added by tomwhalen on Wed, 02 Oct 2019 23:09:22 +0300