Ho appena installato Reagire Bootstrap e ha cominciato a imparare ad usarloReagire Bootstrap non riesce a rendere
ho iniziato facendo tutorial su http://react-bootstrap.github.io/components.html
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Demo</title>
<link rel="stylesheet" href="bootstrap-3.3.5-dist/css/bootstrap.min.css"/>
<script src="js/react-0.13.3/build/react.min.js"></script>
<script src="js/react-bootstrap.min.js"></script>
<script src="js/react-0.13.3/build/JSXTransformer.js"></script>
<script src="js/jquery-2.1.4.min.js"></script>
<script src="demo_bootstrap_react.js" type="text/jsx"></script>
</head>
<body>
<div id="test"></div>
</body>
</html>
Poi ho copiato esercitazione totale di Reagire Button Bootstrap, come this:
const buttonsInstance = (
<ButtonToolbar>
{/* Standard button */}
<Button>Default</Button>
{/* Provides extra visual weight and identifies the primary action in a set of buttons */}
<Button bsStyle="primary">Primary</Button>
{/* Indicates a successful or positive action */}
<Button bsStyle="success">Success</Button>
{/* Contextual button for informational alert messages */}
<Button bsStyle="info">Info</Button>
{/* Indicates caution should be taken with this action */}
<Button bsStyle="warning">Warning</Button>
{/* Indicates a dangerous or potentially negative action */}
<Button bsStyle="danger">Danger</Button>
{/* Deemphasize a button by making it look like a link while maintaining button behavior */}
<Button bsStyle="link">Link</Button>
</ButtonToolbar>
);
ReactDOM.render(buttonsInstance, mountNode);
Non so cosa diavolo sta succedendo. Niente è reso. Ho fatto qualcosa di sbagliato? Ho scaricato React Bootstrap e l'ho già incluso nel file HTML. Questo è impossibile!
Può essere controllato l'errore di Chrome strumento di sviluppo, o, forse, Firebug? – asiniy
Ho provato 'console.log (buttonInstance)' e ho ottenuto 2 errori: 'Errore non rilevato: si è verificata un'eccezione limitata; utilizzare l'ambiente di sviluppo non minificato per il messaggio di errore completo e ulteriori avvisi utili. Unchaught ReferenceError: ButtonToolbar non è definito' Non è possibile che il tutorial nella documentazione sia errato – necroface
Quale versione stai utilizzando? La versione più recente richiede React 0.14. –