後,我得到的錯誤 相鄰JSX元素必須被包裹在一個封閉標籤 這裏是我的代碼片段: var React = require('react');
var Nav = require('Nav');
var Main = React.createClass({
render : function(){
return (
<Nav />
<h2>Main Co
類我有下面的代碼片段, /*
* The drink class, which defines the characteristics of the drink, in its simplest form, has its name
*/
class Drink {
constructor(drinkName) {
this.Name = drinkName;
這工作 import config from './setup/config'
const {port} = config;
這給端口爲未定義 import config, {port} from './setup/config'
// config.port returns a number but port alone is undefined
這也是不確定的 import {po