话题框架与类库 › React

框架与类库:React

Reusing Code with React Native Packages at Shopify

At Shopify, we develop a bunch of different React Native mobile apps: Shop, Inbox, Point of Sale, Shopify Mobile, and Local Delivery. These apps represent different business domains, but they often have shared pieces of functionality like login or foundational blocks they build upon. Wouldn’t it be great to leverage development speed and focus on important product features by reusing code other teams have already written? Sure, but it might be a big and time consuming effort that discourages teams. Usually, contributing to a new repo is more tedious and error prone in comparison to contributing to an existing repository. The developer needs to create a new repository, set up continuous integration (CI) and distribution pipelines, and add configs for Jest, ESint, and Babel. It might be unclear where to start and what to do.

My team, React Native Foundations, decided to invest in simplifying the process for developers at Shopify. In this post, I'll walk you through the process of extracting those shared elements, the setup we adopted, the challenges we encountered, and future lines of improvement.

使用React+pixi.js开发多平台小游戏实践

关于如何制作一个多平台英语学习类答题 PK 小游戏。

React下一代状态管理库——recoil

对于react状态管理库,大家比较熟悉的可能是Redux,但是redux虽然设计得比较简洁,但是他却有一些问题,比如需要写大量的模板代码;需要约定新的状态对象是全新的,如果我们不用全新的对象,可能会导致不更新,这是常见的redux状态不更新问题,所以需要开发者自己去保证,所以不得不引入例如immer这类的库;另外,redux本身是框架无关的库,他需要和redux-react结合才能在react中使用。使用我们不得不借助redux toolkit或者rematch这种内置了很多最佳实践的库以及重新设计接口的库,但与此同时也增加了开发者的学习成本。

所以react的状态管理的轮子层出不穷,下面将会介绍面向未来设计的react状态管理库——recoil。

React Hooks:原理和实践

「Hooks are functions that let you “hook into” React state and lifecycle features from function components」官方文档是这么介绍的,翻译过来就是:Hook是一些可以让你在函数组件里“钩入” React state及生命周期等特性的函数。

React语境下前端DDD的思考

笔者在react项目中尝试使用DDD方法论,为业务对象建模,以更好的理解和把握业务。本文从对业务的思考、react项目的特征出发,阐述笔者在项目中进行的前端DDD探索,以抛砖引玉,和读者一起思考前端DDD的理解和方法。

React 组件性能优化——function component

三个技巧,让组件为我减少了 18w 次 rerender。

Mdebug:基于React开发的移动web调试工具

腾讯新闻 TNTWEB 团队推出的新调试工具。

A Visual Guide to React Rendering - Props

There are two types of values in javascript. Understanding the differences between them gives you Jedi powers in controlling component rendering.

React Server Components 初探

随着前端职能在互联网公司的重要性与日俱增,我们的前端代码库的体积也开始跟着膨胀,特别是基于 React 的应用,Size 常常以兆 (Mb) 计,给渲染的性能优化提出了巨大的挑战。除了体积,还有另一个问题是,在当下的前端同构 SSR 实践中,Server 端的主要用途是执行一些在服务端和客户端都能执行的通用渲染计算,很少能充分发掘 Server 端特有能力的场景。如何降低客户端 JS Size 以及更极致地挖掘服务端的优化能力,成为一个待解决的开放性问题。

Facebook 的 React Team 尝试给出了他们的一个探索方案——React Server Component。一种只运行在服务端的 React 组件化能力,我们来一探究竟。

A Visual Guide to React Rendering - It Always Re-renders

Contrary to popular belief, by default, react component doesn't care whether its props changed or not. It will always re-render when its parent renders.

How To Use Axios in an Optimized and Scalable Way With React

Axios is an HTTP client library with many advantage features. It can be used in browsers and Node.js. In this article, we will see how to utilize all the advanced Axios features in a scalable and optimized way.

Umajs框架react-ssr同构最佳实践方案

Server Side Rendering,缩写为 ssr 即服务器端渲染,在这儿我们不讨论基于传统模板引擎实现的服务端渲染方案;目前业内前端流行的库和框架主要是React和Vue,MVVM类的开发模式和组件化开发思想提高了前端的生产力,使得构建一个web页面变得越来越容易;但也面临了新的问题,主要是首屏加载白屏,SEO两种场景。在业内的解决方案有Nextjs和Nuxtjs分布针对React和Vue技术栈提供了SSR的解决方案,而这两者虽然解决和降低了实现SSR的门槛,但要结合企业级node开发框架使用时,同构方案的集成和使用并不友好。这也是促使我们基于Umajs进行前后端同构方案探索。

换个角度思考 React Hooks

从 Vue 迁移到 React ,不太习惯 React Hooks 的使用?也许换个角度思考 Hooks 出现的意义会对你有所帮助。

React项目无入侵转译小程序

存量业务在使用第三方框架的时候,是不是一定得按框架的规则进行大规模重构呢?本分享为大家介绍,兔小巢业务是如何在最小改动的情况下,利用 Taro 能力实现小程序多端同构。

React Hooks 踩坑之-- Capture Value 特性

Capture Value 是 React Hooks 中很重要的细节点,本篇文章将从一个实际需求的例子出发,对 Capture Value​ 进行介绍。

从源码中来,到业务中去,React性能优化终极指南

我们从React源码入手,结合有道精品课大前端的具体业务,运用三大原则对系统进行外科手术式的优化。同时介绍React Profiler这款工具如何帮我们定位性能瓶颈。

首页 - Wiki
Copyright © 2011-2024 iteam. Current version is 2.124.0. UTC+08:00, 2024-04-28 03:06
浙ICP备14020137号-1 $访客地图$