W
W
way_t2016-11-15 12:34:54
JavaScript
way_t, 2016-11-15 12:34:54

How to send a rendered (React) chat message to another html class?

There is a parody of a chat implemented through React. Link: codepen.io/Tigrago/pen/qqEvVg
Question: how to make the text input form and the submit button remain in the same class (.send-message_form, for example), but the messages that are rendered are sent to another class (. chat-window, for example). I will be very grateful for any help. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2016-11-15
@maxfarseer

Use flux/redux
Use "events" ( either custom Event , or EventEmitter (after the Global Event System heading), or jquery events )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question