JSFiddle - React, Tailwind, and code Playground

HTML

<script src="http://www.openlayers.org/api/OpenLayers.js"></script>
<ul>
    <li><a href="#" onclick="document.getElementById('inhalt1').style.display = 'block';document.getElementById('inhalt2').style.display = 'none';document.getElementById('inhalt3').style.display = 'none';">Map 1</a></li>
    <li><a href="#" onclick="document.getElementById('inhalt1').style.display = 'none';document.getElementById('inhalt2').style.display = 'block';document.getElementById('inhalt3').style.display = 'none';">Map 2</a></li>
    <li><a href="#" onclick="document.getElementById('inhalt1').style.display = 'none';document.getElementById('inhalt2').style.display = 'none';document.getElementById('inhalt3').style.display = 'block';">Map 3</a></li>
</ul>
<div id="inhalt1">
<div id="map1" style="width:600px;height:400px;"><p>Text hier</p></div> 
</div>
<div id="inhalt2">

<div id="map2" style="width:600px;height:400px;"><p>Anderer Text</p></div> 
</div>
<div id="inhalt3">

<div id="map3" style="width:600px;height:400px;"><p>Ăśberraschung!</p></div> 
</div>

CSS

div.olControlAttribution {bottom:3px;}
    #inhalt {width:600px;height:400px;}
    li {display:inline-block;}

JavaScript

map = new OpenLayers.Map("map1");
    var mapnik = new OpenLayers.Layer.OSM();
    map.addLayer(mapnik);
    var clonlat = new OpenLayers.LonLat(11.9926, 51.4986).transform( new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913") );
    var zoom = 12;
    map.setCenter(clonlat, zoom);

    map = new OpenLayers.Map("map2");
    var mapnik = new OpenLayers.Layer.OSM();
    map.addLayer(mapnik);
    var clonlat = new OpenLayers.LonLat(12, 52).transform( new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913") );
    var zoom = 12;
    map.setCenter(clonlat, zoom);


    map = new OpenLayers.Map("map3");
    var mapnik = new OpenLayers.Layer.OSM();
    map.addLayer(mapnik);
    var clonlat = new OpenLayers.LonLat(11, 50).transform( new OpenLayers.Projection("EPSG:4326"), new OpenLayers.Projection("EPSG:900913") );
    var zoom = 12;
    map.setCenter(clonlat, zoom);