Reactjs: change image src dynamically in a table/grid

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.

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?

How to scale/resize CVPixelBufferRef in objective C, iOS