questo l'errore completoReactjs: Avviso: React.createElement: tipo non dovrebbe essere nulla o non definito
Attenzione: React.createElement: tipo non dovrebbe essere nulla o non definito. Dovrebbe essere una stringa (per elementi DOM) o una ReactClass (per componenti compositi).
e questo è tutto quello che ho in questa vista
import React, { Component } from 'react';
import Router, {Link, RouteHandler} from 'react-router';
import { Grid, Row, Column, List, ListItem } from '../../components/Layout';
import { RaisedButton, Paper } from 'material-ui';
const videosInformation = {
time : 25,
gameId : 15665,
date : '12 10 2015',
gameName : "Black Jack"
};
export default class Home extends Component {
static contextTypes = {
router : React.PropTypes.func
}
render() {
return <Grid>
<Row>
<Column>
<Paper>
<List subheader="Player Info">
<ListItem primaryText={`Name: ${videosInformation.time}`} />
<ListItem primaryText={`Nickname: ${videosInformation.date}`} />
<ListItem primaryText={`Age: ${videosInformation.gameId}`} />
<ListItem primaryText={`Language: ${videosInformation.gameName}`} />
</List>
</Paper>
</Column>
<Column>
<iframe width="560" height="315" src="https://www.youtube.com/embed/Ta4xuThmAsQ" frameBorder="0" allowFullScreen></iframe>
</Column>
</Row>
</Grid>;
};
}
Sto usando Material-UI
in realtà perché avevo "Elenco, ListItem" in quella linea che hai detto. Basta cambiare quei componenti e passare alla riga di importazione 'material-ui' e questo è. Mi sono sentito così stupido aha grazie – NietzscheProgrammer