This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react' | |
/** | |
* 通过调用createModal函数,传入一个模态窗口组件,返回对象{ show: [Function], hide: [Function], Component: [React.Component] } | |
* | |
* @example: | |
* class App extends React.Component { | |
* modal = createModal(SomeModalComponent) | |
* | |
* render () { |