remix-demo

react router (remix) demo

git clone https://9o.is/git/remix-demo.git

index.tsx

(474B)


      1 import PrimaryLink from "~/components/forms/PrimaryLink";
      2 import Heading from "~/components/Heading";
      3 
      4 export default function FoodEntriesIndex() {
      5   return (
      6     <section>
      7       <Heading>Food Entries</Heading>
      8       <p className="mb-6 text-lg text-gray-500">
      9         Add new food entries, including the name of the food, the date you
     10         consumed the food, and the number of calories.
     11       </p>
     12       <PrimaryLink to="new">Add Food</PrimaryLink>
     13     </section>
     14   );
     15 }