Daniel Espino Garcia
MVI: Minimum Viable Interface for React Components
#1about 2 minutes
Introducing Minimum Viable Interface for business code
MVI is a philosophy for writing business-specific code by keeping the interface of your components as small as possible to satisfy current needs.
#2about 2 minutes
Benefits of a minimal component interface
Reducing component props lowers cognitive load, simplifies testing, makes refactoring easier, and improves overall codebase coherence.
#3about 2 minutes
Defining a React component's interface as its props
For the purpose of MVI, a React component's public interface is defined entirely by the props it accepts.
#4about 3 minutes
Contrasting abstract library code with specific business code
Unlike abstract library code designed for many use cases, business code should be concrete and tailored to solve a single, specific problem.
#5about 1 minute
Applying the YAGNI principle to component props
The "You Ain't Gonna Need It" (YAGNI) principle advises against adding props or features for hypothetical future needs.
#6about 5 minutes
Choosing the right prop types from booleans to styles
A hierarchy of prop types is presented, favoring simple types like booleans and enums over more flexible but dangerous ones like class names or styles.
#7about 3 minutes
Why you should wrap third-party libraries
Encapsulate third-party libraries in your own components to expose only the minimal interface needed, simplifying future refactoring and dependency swaps.
#8about 1 minute
How to avoid impossible component states with props
Design your component props using enums or union types instead of multiple booleans to prevent developers from creating invalid or nonsensical states.
#9about 2 minutes
Addressing the challenges and trade-offs of MVI
While adapting to changing business needs can be uncomfortable with MVI, the long-term benefits of clarity and simplicity often outweigh the initial friction.
Related jobs
Jobs that call for the skills explored in this talk.
Matching moments
06:03 MIN
Best practices for designing flexible and reusable component APIs
Leveraging Storybook for Component Driven Development outside of your classic Component Library.
02:52 MIN
Understanding the core principles of React
Hands-on React Native: From Zero to Hero
26:11 MIN
How atomic design prevents common frontend anti-patterns
Building a large, complex product from the ground up with typescript & Atomic Design:lessons learned
28:43 MIN
Summary of key principles for accessible React apps
Accessibility in React Application
05:52 MIN
Using essential community libraries and basic components
Building Better Apps with React Native
02:49 MIN
The limits of prop-based component customization
Building a component library for modern challenges
21:19 MIN
Sharing UI components and ensuring design consistency
Independently together: how micro-applications improve developer experience + app performance
34:34 MIN
The benefits of a composable JavaScript ecosystem
GraphQL + Apollo + Next.js: A Lovely Trio
Featured Partners
Related Videos
Building Interactive Async UI with React 19 and Ariakit
Aurora Scharff
Building a component library for modern challenges
Filip Rakowski
Dos and don'ts with react hooks. An opinionated approach
Daniel Espino Garcia
Building a framework-independent component library
Tobias Scholz
Bringing back reactivity in "reactive" frontend
Michał Moroz
Rethinking React State Management: The Power of Built-In Solutions
Marc Brehmer
Component styling in a JS world — evolve your mental model
Maximilian Heinrich
Interface Contracts in Microfrontend Architectures
Alexander Günsche
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

Frontend Developer (React/Typescript)
Movu Robotics
Lokeren, Belgium
Intermediate
GIT
.NET
JSON
REST
Azure
+9



Frontend Software Engineer (React, TypeScript)
Manukai
Zürich, Switzerland
Intermediate
API
React
Figma
Python
Three.js
+3

Frontend Developer (React/Vue)
Concept LTD
Charing Cross, United Kingdom
Remote
£50-70K
Intermediate
CSS
GIT
SASS
+9

Vue.js Developer im Frontend
APRIORI - business solutions AG
München, Germany
Remote
CSS
React
Svelte
Vue.js
+3

Front End Engineer TypeScript React Native AI
Client Server
Charing Cross, United Kingdom
Remote
£80K
CSS
React
JavaScript
+5

