add require('react') and use JSX to avoid createFactory
add require('react') and remove createFactory