JSFiddle - React, Tailwind, and code Playground

JavaScript

$('body').html("1111222233334444".match(/.{1,4}/g).join(" "));