tracking-code-which-will-go-to-the-HEAD FLAMEAL Documentation client/src/components/Checkbox/Checkbox.js

Source

client/src/components/Checkbox/Checkbox.js

import React from "react";
import "./Checkbox.css";
/**
 * A function used to return the checkbox component used in the register form.
 *@category Components
 * @component
 * @param {Function} onClick - the function to be called when the checkbox is clicked
 * @returns {ReactComponent} the checkbox component
 */
const Checkbox = ({ onClick }) => {
  return (
    <div className="checkbox-container">
      <input type="checkbox" onClick={onClick} />
      <label>Foodbank</label>
    </div>
  );
};

export default Checkbox;