Please tell us the principle of slot and slot-scope in Vue (2.6.11 Deep Resolution) - Know it

Preface Slot and slot-scope in Vue have always been an advanced concept, which is not always touched in our daily component development, but is very powerful and flexible. In Vue 2.6 Slot and slot-scope are unified into functions within components Their rendering scope is all sub-components And can be accessed through this. ...

Added by Imagine3 on Tue, 07 Apr 2020 05:10:19 +0300

React native opens the setting interface

iOS iOS open settings are relatively simple. You can use the Linking component to: Linking.openURL('app-settings:') .catch(err => console.log('error', err)) Android 1. Create the opensettings folder under the Android / APP / SRC / main / Java / COM / < ProjectName > / folder 2. In this folder, create the module file OpenSettingsModul ...

Added by Emperor_Jackal on Thu, 02 Apr 2020 20:45:53 +0300

Summary of usage of dva.js

Dva.js is a front-end framework based on react, Redux and webback developed by Alibaba front-end team. It can realize one click deployment of react Redux webback environment, which can save front-end engineers a lot of time in setting up the environment. And the optimized Redux is more convenient to use than the native redux. Let's talk about t ...

Added by PHP_apprentice on Thu, 02 Apr 2020 14:23:27 +0300

Create react app and complete HelloWorld of TodoList

React is the front-end framework of FaceBook, which is characterized by componentization, high encapsulation and component reuse. The disadvantage is that both view and data are included in the render function, which does not achieve the separation of data and view The JSP syntax initiated by React has become an independent standa ...

Added by SieRobin on Thu, 02 Apr 2020 04:14:24 +0300

Example of front and back communication between Alice and Spring Boot

Case summary This article provides a project instance that uses aliice front-end framework (encapsulating React) to communicate with Spring Boot project. For specific project environment, please refer to: Alibaba ICE front end project creation process . This example does not introduce the creation ...

Added by Louis11 on Wed, 04 Mar 2020 08:24:55 +0200

VUE MVVM introduction and demonstration

MVVM introduction and demonstration easyUI knockout smartclient exit.js During the interview, the interviewer will ask you to describe the MVVM you know? What is MVVM implemented in Vue? OK, let's solve the problem First of all, the first M refers to the Model, that is, the * * data Model. In fact, it refers to the data * * in the Vue co ...

Added by chooseodie on Fri, 14 Feb 2020 09:45:56 +0200

Basic use of react-router

Basic use of react-router When you work on a project, you find that your knowledge of routing is not enough. It is only a few simple things. You don't know much about routing-related matching caused by page jumps and url resets, so simply say Routing. Route Routing is designed to keep our UI and URL ...

Added by lookielookies on Tue, 11 Feb 2020 03:12:58 +0200

Observer mode of GOF23 design mode

There are many scenarios for observer mode, such as monitoring dom events of js, such as chat programs, such as the implementation of serlet's listener, such as mail subscription; Its core: when the state of an object changes, it needs to inform a series of objects to make them react; There are two ...

Added by llirik on Fri, 31 Jan 2020 18:32:53 +0200

Three ways for Webpack to configure React to support Typescript

background At the beginning, my project is based on react. I want to use Typescript in new functions and gradually modify the previous code, so I need to support both (TS|TSX) and (JS|JSX). You may not need to support TS and JS at the same time. This article will give the solution points of both cases ...

Added by pandhandp on Sun, 19 Jan 2020 14:36:23 +0200

Umi beginners Documentary - creating projects & common configurations

umi It's an enterprise react Application framework is also the bottom front-end framework of ant gold The front frame and engineering practice of ant gold suit   1, Installation of scaffolding Before you create a project, you need to ensure that you have an environment of node 8.10 or higher Official scaffolding is available create-umi Qui ...

Added by Lumio on Wed, 15 Jan 2020 12:15:44 +0200