Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4820 Rev 4822
Línea 16... Línea 16...
16
}) => {
16
}) => {
Línea 17... Línea 17...
17
 
17
 
18
    const { register, handleSubmit, errors, reset } = useForm()
18
    const { register, handleSubmit, errors, reset } = useForm()
Línea -... Línea 19...
-
 
19
    const [commentsState, setCommentsState] = useState(comments);
-
 
20
 
-
 
21
    useEffect(() => {
-
 
22
      setCommentsState(comments)
-
 
23
    }, [comments])
19
    const [commentsState, setCommentsState] = useState(comments);
24
    
Línea 20... Línea 25...
20
 
25
 
21
    const submitCommentHandler = (data) => {
26
    const submitCommentHandler = (data) => {