JSFiddle - React, Tailwind, and code Playground

by gvee

HTML

<input type="text" />
<b></b>

CSS

input[type=text] {
    text-transform: capitalize;
}

JavaScript

$('input[type=text]').keyup(function() {
    $('b').text($(this).val());
});