JSFiddle - React, Tailwind, and code Playground

HTML

<body>
  <div id="redimm" style="background:#777;">div</div>
  <script>
    $(document).ready(defineHeight);
    $(window).resize(defineHeight);
    function defineHeight() {
      var newHeight = $(window).height() + "px";
      $("#redimm").css("height", newHeight);
    }
    /* Instructions
    var newHeight = $(window).height() -> Récupère hauteur de la fenêtre
    $("#div-a-redimmensionner").css("height", newHeight) -> Applique cette   hauteur à n'importe quel élément block
    - $("#div-a-soustraire").height() -> (optionnel) soustrait la hauteur d'un autre élément*/
  </script>
</body>