JSFiddle - React, Tailwind, and code Playground
JavaScript
const SQL= ( ...args)=>{
console.log(args)
return args;
}
const what = 'what';
const mySQL = SQL`
select 1, ${what} `;
const mySQLa = SQL`${JSON.stringify({foo:'bar'},null,2)}`;
console.log(JSON.stringify({foo:'bar'},null,2));