React-router is the community favourite routing solution - it can handle all of your complex routing needs and in this lesson we’ll cover what’s neede
转载 2017-06-20 15:14:00
165阅读
2评论
Not every app is greenfield, and it would be a shame if existing React apps could not benefit from the micro-size of Preact. In this lesson we’ll disc
转载 2017-06-18 00:07:00
68阅读
2评论
Redux is one of the most popular state-management libraries and although not specific to React, it is widely used with it. This is why the author of P
转载 2017-06-21 23:48:00
111阅读
2评论
写在前面生命在于折腾,Coder的折腾就在于造各种轮子。React在前端圈大火之后,轮子层出不穷。而其中的一些轮子,由于专注于解决很多人诟病的React过大、过慢的问题(然而不并不觉得),也相当出名。关注最多的莫过于Preact、Inferno等以「轻量化」为特色的库了,Github Star数也超过10000。另外由于React广泛应用于同构应用上,并且 rendertoString,rende
原创 2021-01-09 22:05:22
3483阅读
By creating a simple ‘hello world’ example application first in vanilla Javascript, and then in Preact without any tools, we’ll learn what type of pro
转载 2017-06-16 04:04:00
131阅读
2评论
Some applications only need a very minimal routing solution. This lesson will cover a practical example showing the router in use. We’ll build a simpl
转载 2017-06-18 02:34:00
72阅读
2评论
React Hooks vs React Class vs React Function All In One React Component Types
转载 2020-10-14 15:30:00
72阅读
2评论
浅谈三大主流框架的优缺点,方便大家在学习框
原创 2022-09-13 11:49:01
130阅读
React 的代码库现在已经比较庞大了,加上 v16 的 Fiber 重构,初学者很容易陷入细节的汪洋大海,搞懂了会让人觉得自己很牛逼,搞不懂很容易让人失去信心, 怀疑自己是否应该继续搞前端。那么尝试在本文这里找回一点自信吧(高手绕路).PreactReact 的缩略版, 体积非常小, 但五脏俱全. 如果你想了解 React 的基本原理, 可以去学习学习 Preact 的源码, 这也正是本文
转载 2022-01-11 16:54:43
185阅读
一、从数据到虚拟domvue和react都是数据决定虚拟dom,进而决定ui。但是二者的实现思路不一样。1.vue的思路捕获变量的赋值和取值操作,在赋值和取值操作中,利用发布--订阅模式更新虚拟dom,进而更新ui。捕获变量的赋值和取值操作,又叫作数据劫持。如何捕获变量的赋值和取值操作呢?let person = { name: "lrx" };Object.def...
原创 2021-09-02 14:06:42
218阅读
在 ​​JavaScript​​ 前端开发框架中,​​Svelte​​ 算是一个新来的搅局者,在网上我们已经听到很多关于 ​​Svelte​​ 的哔哔。因此我决定试试这个家伙,顺便跟 ​​React​​ 做个简单的比较。
转载 2022-02-25 10:38:25
98阅读
以下是一个同时支持 Vue 和 React 的前端实现方案,我将分别提供两个框架的实现思路和核心代码示例:项目结构blog-frontend/ ├── vue-blog/ # Vue 版本 │ ├── src/ │ │ ├── components/ │ │ ├── views/ │ │ ├── router/ │ │ └── App.vue ├
原创 4月前
59阅读
react vs reactive
转载 2019-10-12 19:33:00
129阅读
2评论
React的代码库现在已经比较庞大了,加上v16的Fiber重构,初学者很容易陷入细节的大海,搞懂了会让人觉得自己很牛逼,搞不懂很容易让人失去信心,怀疑自己是否应该继续搞前端。那么尝试在本文这里找回一点自信吧(高手绕路).PreactReact的缩略版,体积非常小,但五脏俱全.如果你想了解React的基本原理,可以去学习学习Preact的源码,这也正是本文的目的。关于React原理的优秀的文
原创 精选 2019-09-22 15:04:28
1486阅读
1点赞
In this lesson we'll look at hashHistory which uses a hash hack to track our route changes vs browserHistory which delivers clean urls, but requires s
转载 2016-03-28 04:41:00
163阅读
2评论
React vs Vue in 2020 技术选型
转载 2020-08-13 09:32:00
96阅读
1. DEMO#1* WelcomeDialog.jsimport React from 'react'import "./WelcomeDialog.css"class FancyBorder extends React.Component { render() { return ( <div className={'Fanc...
原创 2021-08-13 10:00:16
167阅读
这篇文章的全局观和思路一级棒!The Fairy TaleCast your mind back to 2010 when users started to demand interactive web applications. Back then the only real solution was jQuery, and I’d love to know how many of us hav
转载 2019-06-25 19:28:00
91阅读
2019年,React、Vue 和 Angular 哪个更值得学?
原创 2021-09-14 14:58:17
1531阅读
eact由Facebook维护,许多领先的科技品牌在其开发环境中使用ReactReact被Facebook,Uber,Netflix,Twitter,Udemy,Paypal,Reddit,Tumblr,
转载 2019-11-06 10:46:00
393阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5