HomeDocsCreating An Application

Creating An Application

Creating An Application

< 1 min read

4. Front-End Documentation (React)

  • Objective: Document the structure, components, and state management of the React front-end to ensure that all developers understand how to work with and extend the UI.
  • Content Requirements:
    • Component Overview: Describe each React component, its props, and how it fits into the larger UI.
      • Example:
        • ProjectList Component: Renders a list of projects fetched from the back-end.
        • Props: projects (array) – List of project objects to display.
    • State Management: Document how state is managed within the application, including any use of Redux or Context API.
      • Example: The global state is managed using Redux. The projects state slice stores all project data and is updated via actions dispatched from the ProjectList component.
    • Routing: Explain the routing setup within the application, including how routes are protected or dynamically loaded.
      • Example: The application uses react-router for routing. The /projects route is protected and requires user authentication.
  • Example Entry:
    • ProjectDetail Component:
      • Description: Displays detailed information about a single project.
      • Props:
        • projectId (string) – The ID of the project to display.
      • Interactions: Fetches project data from the API on component mount using the projectId prop.
A carbon offset projects developer and carbon markets technology provider leveraging Africa’s vast carbon potential to unlock sustainable environmental, economic, and social benefits for Africa.

Get the latest from Verst

Social Links

Get the latest from Verst

Contact Details

(+254)727-773342

(+254)711-757908

Get the latest from Verst

Quick Links

Terms & Conditions
Privacy Policy
Careers
FAQ’s

© 2024 Verst Carbon Limited. All Rights Reserved