Reactjs: change image src dynamically in a table/grid

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Reactjs: change image src dynamically in a table/grid



I have a grid data, it has a field which displays common image for all rows/records.



I have 2 buttons: updateButton and deleteButton.



When table/grid loads, it must display defaultImage.gif.



If I select a row and click updateButton image src attribute must be set to updateImage.gif



If I select a row and click deleteButton, image src must be set to deleteImage.gif



Is it possible?
I'm new to Reacts, thanks in advance.





Yes, it is possible. Please show us what you got yourself already.
– Łukasz Wojciechowski
yesterday









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

h P81n7OcAMMonkybmbMcnoecjPx3bKfc8Z VkbARbymaisOT7wjuMnnnO95QAX8olN
hlz6,sqT4x583TCJljG9z9zt

Popular posts from this blog

Keycloak server returning user_not_found error when user is already imported with LDAP

PHP parse/syntax errors; and how to solve them?

415 Unsupported Media Type while sending json file over REST Template