Open in app
Home
Notifications
Lists
Stories

Write
Albert Yuebai XU
Albert Yuebai XU

Home

Feb 10

Why I write less technical blogs: the shift from junior to senior

I have been working on front-end development for more than 4 years, and I keep learning technical things (you can check my blogs as evidence), however, I found that it is not suffisant for my current role. I am working in Thefork, it is a very good company, and I…

Senior Developer

2 min read

Why I write less technical blogs: the shift from junior to senior
Why I write less technical blogs: the shift from junior to senior

Jun 15, 2021

Common patterns for customized hooks

Customized hooks are like helper functions in React, they encapsulate logics with different React native hooks: useState, useEffect, useCallback, useMemo, useContext, useRef. In this article, I am going to share some common patterns for customized hooks with the help of React native hooks. Customized hooks should begin with with, to…

React

3 min read


Apr 13, 2021

Improve site performance with examples

Several practical ways to improve site performance with React. For months, we have worked on web performance for our site. It is a tough journey, because even if you know all the good principles (less bundle size, less useless import, lazyload whenever you can), it could be still quite difficult…

React

3 min read


Jun 29, 2020

How to use hooks (useContext, useReducer) to replace redux

Intro In the beginning of development with React, Redux has been a great tool for managing data with certain drawbacks. The drawbacks include: - Sometimes we have too many layers of components if they are connected. The ‘connect’ is actually a Higher Order Component. - Sometimes we need to pass data…

React

2 min read


May 10, 2020

Some misunderstandings with React.memo, useMemo, and useCallback

React.memo, PureComponent, React.useMemo, React.useCallback are React APIs for optimizing web performance. However, on the React official document website, there are only explanations without example, which makes it hard to understand the real use cases. …

React

4 min read


May 8, 2020

Write test for React: component, hoc, hooks, promise, saga, graphql, custom hooks

In this article, I will talk about writing test for react component, connected component, higher order component(HOC), native react hooks, redux saga function (generator function), and function with promise. In the end, I will also talk about an important technique in react testing: how to mock dependencies. All the examples…

Java Script

3 min read


Published in The Startup

·May 5, 2020

React design system with typescript and storybook

A design system should serve two things: export shared components, and show what shared components we have. In this article, I will cover some technical details on the popular implementation of a design system with React + TypeScript + Storybook. Here is the source code and an example project to…

React

4 min read

React design system with typescript and storybook
React design system with typescript and storybook
Albert Yuebai XU

Albert Yuebai XU

Fun of ReactJS, Javascript, Data visualization www.yuebaixu.com

Following
  • Trey Huffine

    Trey Huffine

  • Medium

    Medium

  • Yating

    Yating

  • Remi Roycourt

    Remi Roycourt

  • Zhe Wang

    Zhe Wang

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable