JSFiddle - React, Tailwind, and code Playground

JavaScript

var wF = {
       w : 560,
       h : (312 - 42) / (560 / wF.w) + 42
};
console.log(wF);