JSConf JP

Building a Robust, Extensible Spreadsheet-Like Component with useReducer

Sponsor sessionTrack DJapanese

yata

【Overview】 The evolution of AI has made it easier to implement complex components. However, maintaining consistent UI/UX across products requires building robust, extensible shared components based on sound design. In this session, using a spreadsheet-style table component as a theme, we’ll discuss an approach that treats useReducer as a backend API, composite state management including history and selected ranges, and the extensibility of those approaches.

【Key Talk Topics】

  1. The importance of shared components in the age of AI
  • Why standardization is important even now that components are easy to create
  1. Why useReducer?
  • The limits of useState and the benefits of useReducer
  1. Design for tackling a spreadsheet-style table component
  • A design approach that treats useReducer as a single backend API
  • How to use useReducer to handle range selection, operation history, the clipboard, and other elements in a unified way
  1. Ensuring extensibility to absorb individual requirements for each product
  • Design patterns that customize appearance and behavior while maintaining a shared Reducer