Skip to content

[Add a Play]: BMR & TDEE Calculator #1660

@deansereigns

Description

@deansereigns

Contributor Guidelines

  • I have read the guidelines and discussion

What's the Play about?

This play demonstrates how to calculate Basal Metabolic Rate (BMR) and Total Daily Energy Expenditure (TDEE) using user inputs such as weight, height, age, gender, and activity level.

It helps users understand calorie expenditure concepts while demonstrating React and TypeScript concepts like controlled inputs, derived state, and separation of logic.

What ReactJS concept will be used to create this play?

This play uses the following ReactJS concepts:

  • Functional Components for building modular and reusable UI
  • useState hook for managing user input and form state
  • useMemo hook for efficient calculation of derived values like BMR and TDEE
  • Controlled Components for handling form inputs in a predictable way
  • Component Composition for separating UI into smaller reusable components
  • Separation of business logic into utility functions for better maintainability
  • TypeScript integration for type safety and improved developer experience

Record

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    play requestNew Play Request.💻 aspect: codeConcerns the software code in the repository🚦status: awaiting triageHas not been triaged & therefore, not ready for work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions