How to achieve reusability with React components
Summary
TLDRAlex Gregorian, Senior Director of Engineering at Walmart Labs, discusses the company's transition from a Java stack to React and Node, emphasizing the importance of reusability of React components across various Walmart applications. He outlines the challenges faced, such as dependency management and consistency across components, and introduces solutions like the 'archetype' for dependency control and a meta team for quality assurance. Gregorian also highlights the need for a cultural shift towards a reuse-focused philosophy and the critical role of CI/CD in maintaining component integrity.
Takeaways
- ๐ Alex Gregorian is a Senior Director of Engineering at Walmart Labs, focusing on the application platform that builds frameworks for the frontend experience.
- ๐ Walmart Labs transitioned from a Java stack to React and Node.js to leverage React components across different applications and entities.
- ๐ The scale of Walmart's operations involves hundreds of components, numerous engineers, and dozens of applications, necessitating a robust system for component reuse.
- ๐ The importance of reusability is paramount due to the structure of Walmart, which is organized for productivity and efficiency, with separate teams for different pages like homepage, item page, search, cart, checkout.
- ๐ Components are developed independently outside of applications, housed in their own repositories on GitHub, and published to npm for use across different apps.
- ๐ฆ Dependency management is crucial, with 'archetypes' being a key concept. Archetypes are packages that consume many production and development dependencies, ensuring consistency across components.
- ๐ฅ A 'meta team' at Walmart ensures quality and consistency, with senior representatives from each team participating in regular calls to discuss component management and changes.
- ๐ The process of proposing new components or changes involves a GitHub proposal process, encouraging open discussion and collaboration before components are finalized.
- ๐ Discovery of components is facilitated by 'Electrode Explorer', an open-source tool that runs all components in the organization, allowing anyone to view documentation, dependencies, and even modify components in a playground.
- ๐ CI/CD is critical for managing updates and ensuring that changes in components do not break other applications, with automated pipelines that update and test other applications using a component.
- ๐ The philosophy of reuse must permeate every layer of management and development, affecting how features are built and estimated, and requiring a collaborative approach across teams.
Please replace the link and try again.
Outlines

This section is available to paid users only. Please upgrade to access this part.
Upgrade NowMindmap

This section is available to paid users only. Please upgrade to access this part.
Upgrade NowKeywords

This section is available to paid users only. Please upgrade to access this part.
Upgrade NowHighlights

This section is available to paid users only. Please upgrade to access this part.
Upgrade NowTranscripts

This section is available to paid users only. Please upgrade to access this part.
Upgrade NowBrowse More Related Video

Components | Mastering React: An In-Depth Zero to Hero Video Series

React Context API Tutorial | Quick and Easy

Sintassi del Primo Programma - React Tutorial Italiano 04

I Coded 10,000+ React Components, Here is What I Learned...

Deฬcouvrez Qantev avec Sylvain, Head of Engineering

What are Custom Hooks When to Create One | Lecture 166 | React.JS ๐ฅ
5.0 / 5 (0 votes)