File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- import React , { isValidElement } from 'react' ;
1
+ import React from 'react' ;
2
2
import warning from 'warning' ;
3
3
4
4
function isValidChild ( object ) {
5
- return object == null || isValidElement ( object ) ;
5
+ return object == null || React . isValidElement ( object ) ;
6
6
}
7
7
8
8
export function isReactChildren ( object ) {
@@ -58,7 +58,7 @@ export function createRoutesFromReactChildren(children) {
58
58
var routes = [ ] ;
59
59
60
60
React . Children . forEach ( children , function ( element ) {
61
- if ( isValidElement ( element ) ) {
61
+ if ( React . isValidElement ( element ) ) {
62
62
// Component classes may have a static create* method.
63
63
if ( element . type . createRouteFromReactElement ) {
64
64
routes . push ( element . type . createRouteFromReactElement ( element ) ) ;
You can’t perform that action at this time.
0 commit comments