Practice
It is recommended to name the component by reference instead of using
Using
export default React.createClass({
displayName: 'TodoApp',
// ...
})
Recommended approach:
export default class TodoApp extends React.Component {
// ...
}
Comments