Is it possible ?
Basically what i would like to do is on a event like clicking an 'edit' button i need to replace all elements with a specific tag with an input field i know how to do it with jQuery but would prefer doing it with react.
jQuery/Pseudo Code:
$('a').each(function(e,i){
e.html('<input placeholder="'+ e.text() +'" />');
});
Aucun commentaire:
Enregistrer un commentaire