Reactjs: change image src dynamically in a table/grid

Multi tool use


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.
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.
Yes, it is possible. Please show us what you got yourself already.
– Łukasz Wojciechowski
yesterday