I created a static web page with materialize.css library, when I tried to move some components to react but they are not working.
This is my html boilerplate
<!DOCTYPE html>
<html>
<head>
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<script src="http://fb.me/react-with-addons-0.13.1.js"></script>
<script src="http://fb.me/JSXTransformer-0.13.1.js"></script>
</head>
<body>
<div id="button"></div>
<script type=text/jsx src="main.js"></script>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/materialize.min.js"></script>
</body>
</html>
and this is main.js
var ButtomTest = React.createClass({
render: function() {
return (
<div className="test">
<a class="waves-effect waves-light btn">Stuff</a>
</div>
);
}
});
React.render(
<ButtomTest />,
document.getElementById('button')
);
In the browser i only see "Stuff" in green color. What am I doing wrong?