JSFiddle - React, Tailwind, and code Playground

by teneff

HTML

<input type="text" value="abc" />

JavaScript

$('input').focus(function(){
    $iv = $(this).val();
    $(this).val($iv + 'def');
});