I am learning react native. i want to rewrite the following line using a plain javascript class.
module.exports = React.createClass({
to
export class Dashboard extends React.Component {
not sure if i am doing it right. in the original code, it just exports without giving a class name. can I do the same? or does it hurt if I give a name.
the full source code is there. the line i try to modify is line 19.