Develop reusable React components

When starting a fresh project, it can be easy to slip into some bad user experience habits (the analytics provided by good web hosting services can help negate this over time). As applications grow, components can start swelling in size and when the time comes to reuse a section of it, it can be hard to break apart. Large components become awkward to test, difficult to extend and easy to break.

The best way to avoid this problem is to split the UI into smaller, generic pieces that are easier to reuse because they get their data as props – a pattern known as presentational components. By focusing on the quality of smaller components like a button or input field, we know anything that would use those components will work as well.

Thank you for reading 5 articles this month* Join now for unlimited access

Enjoy your first month for just £1 / $1 / €1

*Read 5 free articles per month without a subscription

Join now for unlimited access

Try first month for just £1 / $1 / €1

Matt Crouch

Matt Crouch is a front end developer who uses his knowledge of React, GraphQL and Styled Components to build online platforms for award-winning startups across the UK. He has written a range of articles and tutorials for net and Web Designer magazines covering the latest and greatest web development tools and technologies. 

Latest in UX & UI
A screenshot of the new YouTube UI
Yes, YouTube has a new UI. Yes, it's terrible
Adobe XD logo
It seems Adobe's given up on UI design (for now)
UX revolution
From 2D to 3D: How brands can harness the latest UX/UI revolution
Screenshot of busy webpage full of graphics and different fonts
Designing websites for accessibility: 5 common errors to avoid
Free Figma subscription offer with a UX design course
Get a free Figma Pro subscription with our online UX design course
A graphic saying 'an insider's guide to UX and UI with Figma, on Wednesday 1 November 1-2pm (GMT)
Free webinar: An insider's guide to UX and UI with Figma
Latest in Features
Anime characters to draw;A collection of popular anime characters, including Pikachu, Totoro, Sailor Moon, and a character resembling Lupin, are depicted in a vibrant and dynamic image.
The best anime characters to draw
Pete Gibbons headshot
"We’ve been making video for social since before social was a thing": a day in the life of Pete Gibbons
A group of people taking a selfie using the iPhone 16e.
7 reasons the iPhone 16e is a huge improvement on the iPhone SE 3
AI trends predictions 2025
How to use AI properly – 5 tips to help you get the most from the tech
How we made Ada; A digitally animated scene depicts two women in a grand, antique-style library, with one pointing.
How we made the "lush, handmade look" of animated series Ada
Cartoons of the 1950s - best animated movies of the 50s; A heartwarming animated scene depicts two canine characters sharing a meal of spaghetti and meatballs at a table outdoors.
Cartoons of the 1950s – the best animated movies from Lady and the Tramp to Animal Farm