mercredi 1 janvier 2020

How to use Models in React TS App in the right way?

Can you please describe how to make right (react app + ts)'s structure including models? I know that models are useful or even necessary for certain database libraries

But I have a task to use models in app that uses simple arrays to hold data. It consists of simple structures like Task (name, priority, id) and User (name, id) and obvious link between them

It's a simple app, but I don't understand where and how to use models there?

I want to use react hooks to fetch array data in components (Tasks list, Task Item, Users list), but simply don't understand where and why to use models, which is a required clause in the task

Aucun commentaire:

Enregistrer un commentaire