import * as React from 'react' ; import ShowText from './ShowText' ; import Mouse from './Mouse' ; let heapdump ; function writeHeapdump ( path ? ) { if ( ! heapdump ) { heapdump = require ( 'heapdump' ) ; } heapdump . writeSnapshot ( path || `${ Date . now ( ) }.heapsnapshot` ) ; return path ; } ; ( window as any ) . demo = { writeHeapdump , } ; export default function render ( props ) { return ( < span > < ShowText /> < Mouse / > < /span>); }