Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Secrets of building robust UI components

Glenn Reyes
December 12, 2022

Secrets of building robust UI components

React UI components can be written in many different ways and patterns. As your app grows, it’s common to increasingly introduce complexity and add up logic to UI components. In the sea of learning materials online, it’s a challenge to settle on a key strategy that lasts for your project.

Attendees will come away with a deeper understanding of how to build high-quality, maintainable user interfaces, as we unveil the secrets of valuable insights and practical tips for building robust UI components that can withstand the test of time.

Glenn Reyes

December 12, 2022
Tweet

More Decks by Glenn Reyes

Other Decks in Programming

Transcript

  1. Adaptability & Flexibility Minimum surface area API Design Accessibility for

    those relying on assistive tech Extensive Testing Documentation Fail-Safe Mechanisms Fallbacks or default states Performance Error Handling
  2. Separate config files per app → Client: eslint-config-banana/react → Server:

    eslint-config-banana/node → Anything: eslint-config-banana (core) Enhance linting with type information → More options for improved DX ESLint > pnpm add eslint-config-banana
  3. Building robust UIs Lorem ipsum dolor sit amet consectetur adipisicing

    elit. Unde, doloremque modi? Facere, aperiam. Obcaecati laboriosam, laborum eius voluptatum quasi eaque maxime consequuntur, facilis numquam sit ex, praesentium tempora architecto quibusdam. Lorem ipsum dolor sit amet consectetur adipisicing elit. Unde, doloremque modi? Facere, aperiam. Obcaecati laboriosam, laborum eius voluptatum quasi eaque maxime consequuntur, facilis numquam sit ex, praesentium tempora architecto quibusdam.
  4. Lorem ipsum dolor sit amet consectetur adipisicing elit. Unde, doloremque

    modi? Facere, aperiam. Obcaecati laboriosam, laborum eius voluptatum quasi eaque maxime consequuntur, facilis numquam sit ex, praesentium tempora architecto quibusdam. Lorem ipsum dolor sit amet consectetur adipisicing elit. Unde, doloremque modi? Facere, aperiam. Obcaecati laboriosam, laborum eius voluptatum quasi eaque maxime consequuntur, facilis numquam sit ex, praesentium tempora architecto quibusdam. Building robust UIs
  5. Lorem ipsum dolor sit amet consectetur adipisicing elit. Unde, doloremque

    modi? Facere, aperiam. Obcaecati laboriosam, laborum eius voluptatum quasi eaque maxime consequuntur, facilis numquam sit ex, praesentium tempora architecto quibusdam. Lorem ipsum dolor sit amet consectetur adipisicing elit. Unde, doloremque modi? Facere, aperiam. Obcaecati laboriosam, laborum eius voluptatum quasi eaque maxime consequuntur, facilis numquam sit ex, praesentium tempora architecto quibusdam. gap: 24px Building robust UIs
  6. ↗ Try keep separate dumb & smart components ↗ Group

    related code parts together ↗ Build custom hooks if applicable ↗ Reduce the API surface to the bare minimum