Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 315 | Ir a la última revisión | | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
306 geraldo 1
import React from "react";
2
 
3
const Option = (props) => {
4
 
5
    // get props
6
    const { question } = props;
7
 
8
    return (
9
        <div>
10
            {question.options.map((opt, key) => {
11
                return (
12
                    <div className="checkbox">
13
                        <input
14
                            type="checkbox"
15
                            name={`${opt.option_slug}[]`}
16
                            id={option_slug}
17
                            key={key}
18
                            value={opt.option_slug} />
19
                        {opt.text}
20
 
21
                    </div>
22
                )
23
            })}
24
        </div>
25
 
26
    )
27
}
28
 
29
export default Option;