Structure
What most tutorials and courses overlook is how all the pieces come together into one application.
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.
Structure
What most tutorials and courses overlook is how all the pieces come together into one application.
Directory
The directory is subjective and varies per project, below is an example of a directory with a clear division of responsibility.
Parts
Containers Containers are Class Components where most of your Application State lives, acting as a Parent Component where Props are passed from. This prevents your State from being scattered all over the place and makes it easier to find the source of data.
Pages/Screens These are Stateless\Functional Components where you piece together Components into a layout, passing Props into said components. It's ideal to avoid displaying Props here. Sometimes you'll want to add logic which will affect the UI, e.g. Loading Component.
Components Components are where you feed Props into UI, and should be Stateless\Functional unless the use case requires State, e.g. Forms, Action Inputs.
Services These are functions that connect your application to a backend or third party service, e.g. Slerp API, Google Maps API.
Helpers Helpers consider splitting functions which are commonly used throughtout the application, e.g. Format Helper, Currency Helper
Reference
• File Structure (reactjs.org): https://legacy.reactjs.org/docs/faq-structure.html
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