JSFiddle - React, Tailwind, and code Playground

HTML

<body>
    <div class="wrap" id="one" onscroll="myFunction()">
        <article>
            Your dynamically loaded article content goes here.
            <br />
            This is your first page.
        </article>
    </div>
    <div class="wrap" id="two">
        <article>
            Your dynamically loaded article content goes here.
            <br />
            This is your second page.
        </article>
    </div>
    <div class="wrap" id="three">
        <article>
            Your dynamically loaded article content goes here.
            <br />
            This is your third page.
        </article>
    </div>
</body>

CSS

/* Normalize */

html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    text-decoration: none;
    color: white;
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    -webkit-padding-start: 0px;
}
figure, figure.thumb, div, img {
    box-sizing:border-box;
    -moz-box-sizing:border-box;
    -webkit-box-sizing:border-box;
}
body{
    position:absolute;
    width:100%;
    height:100%;
    overflow:scroll;
}
div.wrap {
    width:100%;
    height:100%;
}
div.wrap article {
    display: block;
    width:100%;
    height:100%;
}


/* demonstration purposes. not important. */
#one {
    background: blue;
    
}
#two {
    background: green;
}
#three {
    background: red;
}