Javascript y reactjs Neobook - Forum

Forum Navigation
You need to log in to create posts and topics.

Javascript y reactjs Neobook

Very good, I have a question to see if someone has the knowledge to help me.

I am trying from neobook to log into a web page. On a "normal" website (html, css and javascript) I have no problem doing this. Using JavaScript I enter the data and execute the login button.

I have the problem when I do this same operation on a website where the Javascript ReactJs library is used. I enter the data in the text fields in the same way that I do on the other website without this system, and it appears on the screen that they have been entered, but at the code level the change has not been applied, so that when I press the login button it tells me that I have not entered the data.

From what I have seen reactjs creates a virtual DOM to speed up the execution of the code. It seems that I make the changes to the virtual sun, but the changes are not applied to the real sun for it to work. Does anyone know how I can update the real sun with the data from the virtual sun?

Thank you.

 

Muy buenas, tengo una consulta a ver si alguien tiene el conocimiento para poder ayudarme.

Estoy tratando desde neobook iniciar sesión en una pagina web. En una web "normal" (html css y javascript) no tengo ningún problema en hacer esto. Mediante JavaScript introduzco los datos y ejecuto el botón de inicio de sesión.

El problema lo tengo cuando hago esta misma operación en una web donde se usa la biblioteca Javascript ReactJs. Introduzco los datos en los campos de texto de la misma manera que lo hago en la otra web sin este sistema, y me aparece en pantalla que se han introducido, pero a nivel de codigo no se ha aplicado el cambio, por lo que al pulsar el boton de inicio de sesión me dice que no he introducido los datos.

Por lo que he visto reactjs crea un DOM virtual para acelerar la ejecución del codigo. Parece que yo hago los cambios en el dom virtual, pero no se aplican los cambios en el dom real para que pueda funcionar. ¿Alguien sabe como puedo actualizar el dom real con los datos del dom virtual?

Muchas gracias.