JSFiddle - React, Tailwind, and code Playground
JavaScript
var string = '';
if (typeof string === 'string') {
console.log('HERE');
} else {
console.log('NOT HERE')
}
var string = '';
if (typeof string === 'string') {
console.log('HERE');
} else {
console.log('NOT HERE')
}