Closed joeyfigaro closed 7 years ago
seeing the same thing too
Was able to fix this by using single-function import syntax:
import FontAwesome from 'react-fontawesome'
tried that and still does not work for me =(
import React, { Component } from 'react';
import FontAwesome from 'react-fontawesome';
import './main-header.scss';
class Header extends Component {
render() {
return (
<div className="main-header">
<div className="control-nav">L
<FontAwesome name="bar" />
</div>
<div className="title">title</div>
<div className="control-mode">R</div>
</div>
);
}
}
export default Header;
@trakout worked for me
@proclaim what issue are you seeing?
The proper import syntax is as @trakout mentioned, so will close this. @proclaim if you still have an issue, open up a new ticket and I'll have a look.
Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components).
Navigation.js