| 56 | |
| 57 | // Preact puts children directly on element, and React via props |
| 58 | const getChildren = element => |
| 59 | element.props && element.props.children |
| 60 | ? element.props.children |
| 61 | : element.children |
| 62 | ? element.children |
| 63 | : undefined |
| 64 | |
| 65 | // Preact uses "nodeName", React uses "type" |
| 66 | const getType = element => element.type || element.nodeName |