后,我得到的错误 相邻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