JSFiddle - React, Tailwind, and code Playground

by lamp03

HTML

Sample value: <input type="text">


<div></div>

CSS

div {
max-width: 300px;
font-size:40px;
color:red;
font-weight:bold;
background-color:yellow;
word-wrap : break-word;
}

JavaScript

$(document).ready(function(){
    $("input").keyup(function(){ 
        $("div").text($("input").val());

    });
});