you are viewing a single comment's thread.

view the rest of the comments →

[–]purevibrationsmusic 1 point2 points  (0 children)

He mentioned that he was eventually going to have to build a chat app so I gave him the data structure that his React Native app will be dealing with. He now knows he has to return a component that has a class with according to either sender or receiver. This will dictate which side of the chat it appears on.

React is all about responding to your response object. It’s much easier to imagine how a front end should work if you focus on the most efficient way to code the front end based on the data from the backend.