Yakın bir zamanda Reactjs'i öğrenmeye başladım. Sadece boş bir sayfa gösteren bu basit kod parçasını yazdım. Hata yok, ama tek gördüğüm boş bir sayfa ... Herkes yanlış ne yaptığımı bildirebilir mi? IDE'im Visual Studio'dur.Starter, boş bir sayfayı gösteren örnek olarak tepki veriyor
İştebenim kodu ... Sen anında senin JSX içeriği ayrıştırmak için JSX trafo senaryoyu bağlamanız gerekir
<html>
<head>
<title>Untitled Document</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.2/react.min.js"></script>
</head>
<body>
<div id="results"></div>
<script type="text/jsx">
var hello = React.createClass({
render : function(){
return
<h1>this.props.text</h1>;
}
});
React.render(
<div>
<hello text="Hello Rotls">is hekii 1</hello>
<hello text="Hello Rotls">is hekii 2</hello>
<hello text="Hello Rotls">is hekii 3</hello>
</div>
,document.getElementById('results'));
</script>
</body>
</html>
'Sen tarayıcı içi JSX trafosu kullanan ile tepki konusunda iyi bir yazı. JSX'inizi üretim için önbelleğe aldığınızdan emin olun. – Ionut