Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 318 | Rev 320 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 318 Rev 319
Línea 1... Línea 1...
1
import React from "react";
1
import React from "react";
Línea 2... Línea 2...
2
 
2
 
3
const Option = (props) => {
-
 
Línea 4... Línea 3...
4
    console.log(question.options)
3
const Option = (props) => {
5
 
4
 
Línea 6... Línea 5...
6
    // get props
5
    // get props
7
    const { question } = props;
6
    const { question } = props;
-
 
7
 
-
 
8
    return (
-
 
9
        <div>
-
 
10
            {question.options.map((opt, key) => {
-
 
11
                return (
-
 
12
                    <div className="checkbox"            key={key}>
-
 
13
                     
-
 
14
 
-
 
15
                        <div
-
 
16
                            dangerouslySetInnerHTML={{ __html: opt.text }}
-
 
17
                            className="option"
8
 
18
                        />
-
 
19
 
9
    return (
20
                    </div>
Línea 10... Línea 21...
10
        <div>
21
                )
11
           Opcione
22
            })}