Creating Mock Data

Learn to create mock data for our frontend.

We desperately need some data so that we can develop our frontend. In this section, we’ll create some mock data in our frontend. We will also create a function that components will call to get data. Eventually, this function will call our real ASP.NET Core backend.

Steps to create mock data

Follow these steps:

  1. Create a new file in the src folder called QuestionsData.ts with the following interface:

Get hands-on with 1400+ tech skills courses.