Answer the question
In order to leave comments, you need to log in
Own modal for each entry?
There is a list of news
When you click, you need to open a popup with a full description of the news
How best to implement this?
Now I made a popup component, but I still can’t figure out how to pass the information of the selected record to it
Answer the question
In order to leave comments, you need to log in
Change data in the modal, depending on the entry
Via props
Through props or state.
If the full data needs to be requested from the server, then it’s natural to simply pass the ID and make a request to the server from the modal.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question