JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://www.shivampaw.com/wp-content/themes/shivampaw/css/bootstrap-flex.min.css">
<script src="https://www.shivampaw.com/wp-includes/js/jquery/jquery.js"></script>
<script src="https://www.shivampaw.com/wp-content/themes/shivampaw/js/tether.min.js"></script>
<script src="https://www.shivampaw.com/wp-content/themes/shivampaw/js/bootstrap.min.js"></script>
<button class="navbar-toggler hidden-lg-up" type="button" aria-controls="exCollapsingNavbar" aria-expanded="false" aria-label="Toggle navigation" id="MyID">&#9776;</button>

<div class="collapse navbar-toggleable-md exCollapsingNavbar">Test</div>
<div class="collapse navbar-toggleable-md exCollapsingNavbar">Test 2</div>

JavaScript

jQuery('#MyID').on('click', function(){
	jQuery('.exCollapsingNavbar').collapse('toggle');
});