Skip to content

Instantly share code, notes, and snippets.

@Graf009
Created September 17, 2015 09:09
Show Gist options
  • Save Graf009/ddef4109d157046ac62a to your computer and use it in GitHub Desktop.
Save Graf009/ddef4109d157046ac62a to your computer and use it in GitHub Desktop.
Example of a Header error, message: Uncaught TypeError: Cannot read property 'type' of null
import React from 'react';
import { Layout, Content, Navigation, Button, Header } from 'react-mdl';
import 'react-mdl/extra/material.js';
import 'react-mdl/extra/material.css';
React.render(
<Layout fixedHeader>
<Header transparent title="Demo">
{false && <Button raised colored>LOG IN</Button>}
<Navigation className="header-navigation">
<div>REPORTS</div>
<div>LOG OUT</div>
</Navigation>
</Header>
<Content />
</Layout>,
document.body
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment