Creating Mock Data
Learn to create mock data for our frontend.
We'll cover the following
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:
Create a new file in the
src
folder calledQuestionsData.ts
with the following interface:
Get hands-on with 1400+ tech skills courses.