JSFiddle - React, Tailwind, and code Playground

by pierian_design

JavaScript

var a = 1;

var sSplitTo = !!a ? ' to rows ': ' to columns ';

console.log(sSplitTo);