Common Problems of Isomorphism and Isomorphism Using React's static Method
Code address please github View If there is new content, I will update it regularly, and welcome you to star,issue and make progress together.
1. Where does our server render data come from?
1.1 How to write isomorphic components
Sometimes the HTML structure generated by the server side is not perfect, sometimes it is not possible witho ...
Posted by ik on Tue, 25 Jun 2019 21:19:03 +0200
Learn from zepto.js how to trigger DOM events manually
Preface
Front-end is very popular in recent years, vue, react, angular frameworks emerge in endlessly, if we do not know a two-way data binding, do not know what is virtual DOM, it may be despised. Behind the heat is often endless impetuosity, learning these advanced and popular libraries or frameworks can make us go faster, but calm down to re ...
Posted by 244863 on Mon, 24 Jun 2019 22:52:38 +0200
The state of reactjs in es6 grammar and the practice of props transfer between components
PS: The first piece of nonsense
It's a little comforting to remember that a month ago I didn't know how reactjs should be started, but it's a little scary to look back at some of the pits and the startups. Today, I would like to share some of my practical carefulness with new friends.
es6 grammatical form of reactjs
Needless to say more about t ...
Posted by Kilgore Trout on Sat, 22 Jun 2019 00:01:06 +0200
9. Form Processing
9. Form Processing
HTML form elements are somewhat different from other DOM elements in React, because form elements naturally retain some internal state. For example, this form in pure HTML format accepts a single name:
<form>
<label>
Name:
<input type="text" name="name" />
</label>
< ...
Posted by aeboi80 on Tue, 18 Jun 2019 02:36:20 +0200
[react]--Basic use of Hooks - [Alley]
1. react-hooks concept
In React, everything is a component. Components in React are divided into class components and function components. In React, if you need to record the state of a component, it must be a class component.Can function components have the functionality of class components?At this point we need to use hooks.Hook s give ...
Posted by djpeterlewis on Sun, 16 Jun 2019 18:42:51 +0200
Translation | React form: Refs usage
Original address: React Forms: Using Refs
Author: Loren Stewart
Translator: Sprouting
Proofreader: Little boy
Translation | React form: Refs usage
React provides two standard methods for getting values from <form> elements. The first approach is to implement so-called controlled components (see me). Articles published in blogs The s ...
Posted by whare on Sat, 15 Jun 2019 00:28:42 +0200
react-navigation navigator in project practice
React-Native brings new horizons to the front-end. You can use the web development language javascript to implement Native development (ios/android). Now the front-end can do more.
The Use of Reaction-Navigation
Reaction-native uses navigators to implement native routing functions, but the official website is too brief, the only entry docu ...
Posted by said_r3000 on Wed, 12 Jun 2019 22:20:09 +0200
RN Development Practice-Imitating Ctrip App(1)
The project address is attached at the end of the article.
1. New projects
Execute the following commands in the console (provided that the react-native development environment has been built):
react-native init XieCheng // XieCheng is the project name
2. Open new projects
Here we use webStrom to open the project
3. Running Pr ...
Posted by msimonds on Thu, 06 Jun 2019 22:38:58 +0200
Use React, Electron, Dva, Webpack, Node.js, Websocket to quickly build cross-platform applications
Electron's star tup on github is now almost as much as React-native
It feels bad that webpack updates stealthily every week. It's bad that Angular updates to 8. Vue will soon come out with a new version. 5G will be ready for commercial use this year. Huawei's system will come out too. RN hasn't been updated to the first version yet. There is a ...
Posted by digitalmustache on Sun, 02 Jun 2019 19:28:51 +0200
The ViewGroup,View under Android Event Distribution Mechanism Source Code
In the last article, we analyzed the process of event transfer from mobile phone hardware to DecroView. Then we analyzed how ViewGroup and View transfer and handle touch events.
The importance of View's event distribution mechanism is self-evident, interviews, usually do are often contacted. Usually they write according to the code, but they ...
Posted by timmy2 on Sat, 01 Jun 2019 23:00:40 +0200