forked from philholden/subdivide
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make <Subdivide> potentially controllable
- Loading branch information
Showing
4 changed files
with
30 additions
and
32 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
//import 'babel-core/polyfill'; | ||
import React, {Component} from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import Subdivide from './containers/Subdivide'; | ||
import Subdivide from './index'; | ||
|
||
class IframeComponent extends Component { | ||
render() { | ||
return ( | ||
<iframe src="index2.html" frameBorder={'0'} style={{ | ||
width: '100%', | ||
height: '100%' | ||
}}></iframe> | ||
}} /> | ||
); | ||
} | ||
} | ||
|
||
ReactDOM.render(<Subdivide DefaultComponent={IframeComponent}/>, document.getElementById('root')); | ||
ReactDOM.render( | ||
<Subdivide DefaultComponent={IframeComponent} />, | ||
document.getElementById('root') | ||
); | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
//import 'babel-core/polyfill'; | ||
|
||
module.exports = require('./containers/Subdivide'); | ||
export default from './containers/Subdivide'; | ||
export { default as reducer } from './reducers'; |
fb5d352
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usage examples: philholden#6 (comment)