The route of react router DOM react

The route of react router DOM react React routing is now version 4. + using react router Dom and version 3. + using react router There are two modes of routing The hash mode provided by the old browser, we call it: HashRouter The hstory pattern provided by H5 is called BrowserRouter Note: routing in H5 mode requir ...

Posted by jaylee on Sat, 09 Nov 2019 11:19:24 -0800

jQuery Source Analysis DOM Operation Module Delete Element Details

This section talks about the Delete Elements module in the DOM operation module, which is used to delete a node in the DOM or to uninstall the node from the DOM tree. If the node has binding events, we can choose to keep or delete them. There are three interfaces for deleting elements: empty(); Remove all child elements of the matching element ...

Posted by wedge00 on Thu, 07 Nov 2019 17:03:17 -0800

[xinxinxiu] optimize the access speed of cloud server with 1M bandwidth

A 1M bandwidth cloud server, the theoretical maximum download speed is 128kb/s Nowadays, the file size after the front-end project is often a few meters, so it takes more than 10 seconds for users to access it God, how could a user wait so long for you so kindly? He's already gone So how to optimize the access speed? Listen to meExperience ...

Posted by oshecho on Tue, 05 Nov 2019 18:09:42 -0800

One of the solutions for the video tag in html that can't be played in ios wechat

Recently, we are working on a wechat enterprise project. One of the requirements is to play video on the enterprise page. At the beginning, we used the video tag to load the video address directly. As a result, it can play normally in android phones, but not in ios phones. In ios, the symptom is that the video is always loaded, but it can't be ...

Posted by lore_lanu on Tue, 05 Nov 2019 10:27:08 -0800

React foundation - not unknown JSX

Preface What should we pay attention to when adding attributes in JSX and how do the child elements in JSX operate? The case problem of components, the use of extension operators, and how to cycle through an object What does prop s in JSX refer to and what should be paid attention to in the form's labe? Although the above questions are very c ...

Posted by nikosft on Tue, 05 Nov 2019 01:18:32 -0800

Using hooks and connect to access the same store

It has been several months since React Hooks was officially released. redux and mobx also support the use of Hooks. Is it possible to use react context API & Hooks to realize a store that supports class component and functional component access at the same time? The answer is yes. Since we are based on Context Api, let's create a context ob ...

Posted by welsh_sponger on Mon, 04 Nov 2019 11:41:22 -0800

Intensive reading of React Conf 2019 - Day1

1 Introduction React Conf 2019 In October this year, the content quality is still as high as before. If you want to learn more about the front-end or React, this conference must not be missed. I hope that the front-end intensive reading will become a preacher on your way to learning and growth, so this intensive reading will introduce the relev ...

Posted by AQHost on Sun, 03 Nov 2019 17:04:45 -0800

Vue interesting turntable assembly

A rotatable component written with vue, as shown in the figure layout Use the number of cards to divide the 360 degree circle evenly, use the absolute positioning to distribute on the external container, and rotate itself through the rotate computedCardPosStyle(index){ let deg = index * this.unitCardDeg; let absDeg = Math. ...

Posted by richardw on Sun, 03 Nov 2019 16:04:25 -0800

Create a broadcaster component in react

Create a broadcaster component Problems to be solved: Make sure the format of the passed props parameter is correct Manipulate the DOM elements created by React in React Operation of setInterval function during component state switching to ensure no error is reported Problem solvingThe props paramet ...

Posted by lipun4u on Thu, 31 Oct 2019 04:04:14 -0700

[THE LAST TIME] all knowledge points related to JS prototype

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. A series of articles are first listed in the public address [full stack front end]. The author's collec ...

Posted by the_manic_mouse on Wed, 30 Oct 2019 20:23:25 -0700