JSFiddle - React, Tailwind, and code Playground

HTML

<div data-role="page" id="index">

    <div data-role="panel" id="mypanel">

    </div>

        <div data-theme="a" data-role="header">
            <h3>
                First Page
            </h3>
            <a href="#second" class="ui-btn-right">Next</a>
        </div>

        <div data-role="content">
            <a data-role="button" id="open-panel">Open Pannel</a>
        </div>

        <div data-theme="a" data-role="footer" data-position="fixed">

        </div>
    </div> 
    <div data-role="page" id="second">
        <div data-theme="a" data-role="header">
            <h3>
                Second Page
            </h3>
            <a href="#index" class="ui-btn-left">Back</a>
        </div>

        <div data-role="content">
            <a data-role="button" id="open-panel">Open Pannel</a>
        </div>

        <div data-theme="a" data-role="footer" data-position="fixed">

        </div>
    </div>

CSS

.ui-panel-animate {
    transition: transform 1350ms ease 0s !important;
}

JavaScript

$(document).on('click', '#open-panel', function(){   
        alert("f") $.mobile.activePage.find('#mypanel').panel("open");       
    });