Building Usecase

Step 0: Planning and Setup

Right now, you will have an empty template generated by npm run usecase:create command

import React  from "react";

const AgeCalculator: React.FC<{
  data: {};}> = ({ data }: { data: { } }) => {
  
      return <></>;
};

export default AgeCalculator;

Let's think about the components to build.

So Let's start building the UI !!!

Step 1: Creating Basic UI

As there is no data coming from the backend, we can remove the data prop from the template code.

Adding Components that we have discussed in the planning.

Now We have to write to handleClick logic.

Step 2: Writing handleClick Logic

Last updated

Was this helpful?