Skip to content

Latest commit

 

History

History
96 lines (58 loc) · 4.55 KB

hitzii-frontend.md

File metadata and controls

96 lines (58 loc) · 4.55 KB

STYLING

styled-components

DESIGN SYSTEM

Understanding the problem

Tools for build design systems

Tools for visual testing a design system across teams

LAYOUT

Atomic layout -> kettanaito/atomic-layout: Physical representation of layout composition to create declarative responsive layouts in React. (github.com)

STORYBOOK

Storybook: UI component explorer for frontend developers

  • Encourages you to make UI component by component, thinking first in the smaller pieces of your app, and use them to compose pages.
  • Define the different states of a component, predictable behavior of the component.
  • Make a page that contains the library, making easier to search a component.
  • Shareable UI platform (independent deploy), making easy show to the team and get feedback.
  • Automatic Docs, customizable doc page, using MD. Separate Docs page deployable.
  • Easier and resilient testing, (unit, e2e, snapshot...) you test the stories, where you already have mock data, and different states are written, no necessity of write different states in test.
  • Use of tools like Chromatic, to automate snapshot testing, giving feedback to the design team.

Examples:

WRITING UI DOCUMENTATION

Storybook + MDX -> MDX (storybook.js.org)

TESTING WITH STORYBOOK

UI UTILITY LIBS

TABLES

React table React Table - Hooks for building lightweight, fast and extendable datagrids for React (tanstack.com)

Examples -> react-table examples - CodeSandbox

DRAG AND DROP

react-beautiful-dnd

Demo -> Storybook (react-beautiful-dnd.netlify.app)

TESTING

React Testing Library

React Testing Library | Testing Library (testing-library.com)

REACT PATTERNS

Good practices for writting react applications

STATE - COMPONENT COMPOSITION

Application State Management with React (kentcdodds.com)