@aguyinmontreal I don't agree with avoid at all cost type statements. You use the tools that are appropriate.I would look to solving the problem with native tools such as fetch API before going to use jquery.Certainly a lot of jquery is HTML formatting which would not be useful when you are using React for that.

Igor Pugach

@etcIgor

but in the original version css is not used at all (

Kartik V

@zephy20

@SweetCodingInc well not outdated, but more people are shifting to fetch

Aditya

@ezioda004

@etcIgor Ok without CSS then add class = "text-right" on that p

Igor Pugach

@etcIgor

didn't help, will experiment further, thanks

Aditya

@ezioda004

Sure, its a bootstrap class and works fine when I tested on your pen.

Emil

@aguyinmontreal

@sjames1958gm so for example, on Gitlab, when people are adding comments on an open "issue", and I see the new comments appearing live on my screen, that's necessarily websockets? It cannot be done with API requests?

Pieter Stokkink

@forkerino

@aguyinmontreal you can use API calls for it, but then you need to poll the server manually every x amount of time

Stephen James

@sjames1958gm

@aguyinmontreal Well you can periodically request updates, but that can put an extra load on the server depending on the number of clients

Emil

@aguyinmontreal

@forkerino@sjames1958gm alright! so web sockets is 100% the way to go? any other technology that can be used for that?

Pieter Stokkink

@forkerino

@aguyinmontreal I'd use the socket, I don't know of any good alternative (the API calls can work for moderate amount of users, for example an app that is only available for a limited number of users, but it doesn't scale well)

Stephen James

@sjames1958gm

@aguyinmontreal Of course the backend will have to support web sockets, if not then polling will have to be used

Sweet Coding :)

@SweetCodingInc

@aguyinmontrealSTOMP is a well standardized technology. You could combine that with either socket api or SSE (server sent events)

_

Emil

@aguyinmontreal

@sjames1958gm what exactly do you mean by "polling", could you please provide me with a link? thanks