Skip to content

Commit

Permalink
matrix-form component
Browse files Browse the repository at this point in the history
  • Loading branch information
grrrisu committed Nov 2, 2017
1 parent 39675fb commit fb2c477
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
11 changes: 11 additions & 0 deletions app/components/matrix-form.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react';

module.exports = ({size, onChangeSize}) => {
return(
<div>
<form>
<input type="text" value={size} onChange={onChangeSize}/>
</form>
</div>
);
}
7 changes: 6 additions & 1 deletion app/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import React from 'react';
import ReactDOM from 'react-dom';

import MatrixForm from './components/matrix-form'

ReactDOM.render(
<h1>Game of Life</h1>,
<div>
<h1>Game of Life</h1>
<MatrixForm size="5"/>
</div>,
document.getElementById('app')
);

0 comments on commit fb2c477

Please sign in to comment.