基本的reactjs相关,额外添加基本的应用demo
branch有各自的开发版本
- pro-cli: 基于脚手架构建
- base-dev: 采用静态方式,构建应用
基本的reactjs相关,额外添加基本的应用demo
Home Page: https://front-end-open.github.io/LReact/
License: MIT License
Is your feature request related to a problem? Please describe.
UI组件和广义组件区分:
Juqery版本UI组件实现
Describe the solution you'd like
A clear and concise description of what you want to happen.
鉴别UI组件与广义组件的区别
实现Juqery-Tab组件功能
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
组件数据更新过程,即相关hook理解。
Describe the solution you'd like
Is your feature request related to a problem? Please describe.
Immutable库与react组件结合使用
Describe the solution you'd like
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
比较
Hoc
与Mixin
Describe the solution you'd like
而相对于
mixin
来说,mixin
是通过抽离组价间功能逻辑,然后再向需要的组件传入此公共mixin
, 这就明显加重了组件的逻辑,变得维护复杂度变高,具有一定的侵入性。
更符合函数式编程思维,输入到输出的单一流特点,即透明,不可变更,无副作用特性。在
react
中,使用高阶组件的WrappedComponent
是不会感受到高阶组件的存在的,也就是原始组件内部封装不受高阶组件影响,同时两者的结合还能为原始组件增强功能,比较明显的体现了高阶组件的无侵入特性
特别说明
React新标准中,已经放弃对
mixin
使用,因为从组件的设计和可维护角度讲,确实造成一定程度的副作用影响。【React v16.3】
Is your feature request related to a problem? Please describe.
react高阶组件应用
Describe the solution you'd like
解决高阶组件应用案列
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
react事件
Describe the solution you'd like
探究react事件在业务场景中的应用
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
hook
运作机制;Describe the solution you'd like
md表格形式总结
Is your feature request related to a problem? Please describe.
Tab-Ui组件与react业务组件差别校验
Describe the solution you'd like
比较jquery版tab实现与Tab组件实现,内部设计过程。
Describe alternatives you've considered
react版本Tab组件实现
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
组件元素和DOM元素类型属性差别比较
Describe the solution you'd like
自定义属性和原生属性使用
Is your feature request related to a problem? Please describe.
动态子组件多子组件返回情况
Describe the solution you'd like
key的传递
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
子父组件通信之回调函数
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
通过
Nodejs
的EventEmmiter
模块,基于Pub/sub
来实现react
组件任意级别的通信
Additional context
Is your feature request related to a problem? Please describe.
CssModule方案
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe.
基于组件设计的组合模式,实现组件界面细粒度组合控制;结合高级组件,实现组件内部的逻辑复用
Describe the solution you'd like
Is your feature request related to a problem? Please describe.
组件特性
Describe the solution you'd like
组件的逻辑组织,运行过程
Is your feature request related to a problem? Please describe.
React合成机制原理理解: 合成事件即所有事件类型都是通过合成事件机制去协调的。组件内部定义的事件处理器并不是我们直接需要调用的
Is your feature request related to a problem? Please describe.
组件性能优化手段
function Component(props, context, updater) {
this.props = props;
this.context = context; // If a component has string refs, we will assign a different object later.
this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
// renderer.
this.updater = updater || ReactNoopUpdateQueue;
}
Component.prototype.isReactComponent = {};
/**
* Sets a subset of the state. Always use this to mutate
* state. You should treat `this.state` as immutable.
*
* There is no guarantee that `this.state` will be immediately updated, so
* accessing `this.state` after calling this method may return the old value.
*
* There is no guarantee that calls to `setState` will run synchronously,
* as they may eventually be batched together. You can provide an optional
* callback that will be executed when the call to setState is actually
* completed.
*
* When a function is provided to setState, it will be called at some point in
* the future (not synchronously). It will be called with the up to date
* component arguments (state, props, context). These values can be different
* from this.* because your function may be called after receiveProps but before
* shouldComponentUpdate, and this new state, props, and context will not yet be
* assigned to this.
*
* @param {object|function} partialState Next partial state or function to
* produce next partial state to be merged with current state.
* @param {?function} callback Called after state is updated.
* @final
* @protected
*/
Component.prototype.setState = function (partialState, callback) {
if (!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null)) {
{
throw Error( "setState(...): takes an object of state variables to update or a function which returns an object of state variables." );
}
}
this.updater.enqueueSetState(this, partialState, callback, 'setState');
};
/**
* Forces an update. This should only be invoked when it is known with
* certainty that we are **not** in a DOM transaction.
*
* You may want to call this when you know that some deeper aspect of the
* component's state has changed but `setState` was not called.
*
* This will not invoke `shouldComponentUpdate`, but it will invoke
* `componentWillUpdate` and `componentDidUpdate`.
*
* @param {?function} callback Called after update is complete.
* @final
* @protected
*/
Component.prototype.forceUpdate = function (callback) {
this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
};
Is your feature request related to a problem? Please describe.
组件生命周期运行原理,过程研究
Describe the solution you'd like
hook
hook
,相互之间的关联A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.