JSFiddle - React, Tailwind, and code Playground

HTML

<div class="wrapper">
    <div class="inner">
        <div class="frame sidebar">
            <iframe src="http://toster.ru/q/145330">
                Ваш браузер не поддерживает плавающие фреймы!
            </iframe>
        </div>
        <div class="frame content">
            <span class="toggle">&times;</span>
            <iframe src="http://toster.ru/q/145330">
                Ваш браузер не поддерживает плавающие фреймы!
            </iframe>
        </div>
    </div>
</div>

CSS

html, body {
    height: 100%;
    position: relative;
}
.wrapper {
    position: relative;
    display: table;
    height: 100%;
    width: 100%;
}
.wrapper .inner {
    width: 100%;
    display: table-row;
}
.wrapper .inner .frame {
    display: table-cell;
    position: relative;
    height: 100%
}
.wrapper .inner .frame iframe {
    position: relative;
    height: 100%;
    width: 100%;
    border: none;
}
.wrapper .inner .frame.sidebar {
    width: 200px;
    background-color: #ff0000;
    overflow: hidden;
}
.wrapper .inner .frame.sidebar.hide {
    display: none;
}
.wrapper .inner .frame.content {
    background-color: #ffff00
}
.toggle {
    z-index: 2;
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px;
    display: inline-block;
    color: #ffffff;
    background-color: #0000ff;
    cursor: pointer;
}

JavaScript

$(document).ready(function(){
    $(".toggle").on("click", function(){
        $(".sidebar").toggleClass("hide");
    });
});