Skip to content

Commit e99a00e

Browse files
committed
Allow string values as <Route component>
1 parent 04982a7 commit e99a00e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/Router.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ var Router = createClass({
188188
},
189189

190190
createElement(component, props) {
191-
return typeof component === 'function' ? this.props.createElement(component, props) : null;
191+
return component ? this.props.createElement(component, props) : null;
192192
},
193193

194194
render() {

0 commit comments

Comments
 (0)