Components
Engineering
Our engineering is underpinned by principles that celebrate both the integrity of code and the ambition to innovate. This manifesto champions excellence, advocates for the adoption of cutting-edge technologies, and fosters an environment of continuous intellectual growth.
Components
Prefer stateless components
You should start with a stateless component. Upgrade to a Class only if State becomes absolutely necessary.
When to use class components
Class Components are usually used as parent containers to provide your subcomponents with data. Use them only if you need State.
Use props.children for template components
If you find yourself needing to wrap elements inside of a component, you can use props.children which contains all the elements wrapped inside the component tag. A few use cases would be for Modals, Dialogs, and Cards.
Use defaultProps to make reusable components
We like using defaultProps because we can make reusable components to make certain constants overridable. Both Stateless/Stateful Components can use DefaultProps however it's best you only use it on Stateless Components.
Your components won't break when props are missing.
Additional guidelines
References
• Components (reactjs.org) • Understanding React Components (medium.com)
Dive into our latest musings and discoveries. Our blog is a window to the trends shaping the future and reflections on our journey.
Exploring horizons, sharing insights.
From building minimum-viable-products to managing existing products, we created product teams and managed them within Mashup Garage. We work with companies of different stages and together we built products and launched them.
From building minimum-viable-products to managing existing products, we created product teams and managed them within Mashup Garage. We work with companies of different stages and together we built products and launched them.
From building minimum-viable-products to managing existing products, we created product teams and managed them within Mashup Garage. We work with companies of different stages and together we built products and launched them.
Mashup Garage, a premier software development team, specialises in crafting exceptional products for startups and enterprises. With expertise in React, Elixir/Phoenix, and Ruby on Rails, we deliver solutions that meet your unique needs. Our mission is to bring value backed by decades of technical expertise and global co-founding experience.
What do you need help with?
Build a project
Build a team
Consult
Speak to someone
Expect a guaranteed response from us in 1-2 business days.
United Kingdom
London
Islington, London
+44 738 777 3405
Philippines
Manila
3F Topy IV Building, 3 Economia Road, Bagumbayan, Quezon City, 1110
+63 917 3084089