JSFiddle - React, Tailwind, and code Playground

HTML

<div class="number">25</div>

JavaScript

var numb = $('.number').val();
console.log(numb);