N
N
Newbie Ivanovich2019-04-17 08:25:17
React
Newbie Ivanovich, 2019-04-17 08:25:17

How to autoscroll a component when receiving/sending a message?

I do a chat when sending a message, the message is sent to the server and the server returns an updated array of messages. Also, the sent message is added to the array and immediately displayed in the Textfield component, but you have to scroll down to see it.
how to autoscroll a component when the array changes (receiving/sending a message)?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question