1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

Move menu into React

This commit is contained in:
andsandv 2014-10-24 12:55:12 +02:00 committed by Ivar Conradi Østhus
parent 92ca77ad07
commit 3b8b862dde
2 changed files with 10 additions and 10 deletions

View File

@ -15,14 +15,7 @@
<script src="//cdnjs.cloudflare.com/ajax/libs/reqwest/1.1.4/reqwest.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/reqwest/1.1.4/reqwest.js"></script>
</head> </head>
<body> <body>
<nav class="navbar navbar-default navbar-static-top" role="navigation"> <div id="content" class="container-fluid">Loading...</div>
<div class="container">
<a class="navbar-brand" href="#">Unleash</a>
</div>
</nav>
<div class="container-fluid">
<div id="content">Loading...</div>
</div>
<script type="text/jsx" src="js/unleash.jsx"></script> <script type="text/jsx" src="js/unleash.jsx"></script>
</body> </body>
</html> </html>

View File

@ -9,7 +9,14 @@
// //
var Menu = React.createClass({ var Menu = React.createClass({
render: function() { return <div/>; } render: function() { return (
<nav className='navbar navbar-default' role='navigation'>
<div className='container'>
<a className='navbar-brand' href='#'>Unleash</a>
</div>
</nav>
);
}
}); });