Progress on answer key form
This commit is contained in:
20
src/components/AnswerKeyForm/QuestionsRow.js
Normal file
20
src/components/AnswerKeyForm/QuestionsRow.js
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user