If I'm creating a component, it seems you can create a class in a lot of different ways. What is the difference between these? How do I know which one to use?
import React, {Component} from 'react'
export default class Header extends Component {
}
export const Header = React.createClass({
})
export default React.createClass({
})
I'm just assuming they do different things, or is it just different syntax?
If someone could give me a quick explanation, or a link, I would really appreciate it. I don't want to start out with a new framework not knowing exactly what the difference is.