Progress on answer key form

This commit is contained in:
Ben Ramey
2018-09-14 07:23:20 -05:00
parent 69ac851e13
commit c15cbbf5ae
6 changed files with 104 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
import React from 'react';
export default function(props) {
const cells = [...Array(props.numQuestions).keys()].map((question, index) => (
<td key={index}>
<input
name={'answer_' + props.testNum + ',' + question}
type="text"
onChange={props.handleInputChange}
/>
</td>
));
return (
<tr className="answerkeyform__table__questionrow">
<th>{props.testNum}</th>
{cells}
</tr>
);
}