#76 A simple messaging app with React Native and Socket.io
this week's favorite
I never thought I would be writing an article on Medium, but I honestly couldn’t find a decent guide or example of using React Native with Socket.io for this use case. I did find some relevantexamples, but they were either not descriptive enough or were using a different tech stack. So now it’s time for me to contribute to the wealth of knowledge.
People are often drawn towards using React.js thanks to the benefits of isomorphic (or universal) rendering. That is, the ability to render your single page application on the server-side, send the html to the client and have the client become interactive without having to re-rendering the entire page.
React-Native has been around for about 2 years, and became a really interesting framework since it can be used for Android and let us build cross-platform mobile apps. A few contributors also customized the framework to build desktop apps for Mac and Windows, which is quite cool.
Last month, I converted my personal website to React after gaining a lot of experience with it in the workplace. I used my website as a guinea pig to stretch React to the limits and see what I could achieve with it technically.
Media queries are classy! They are a basic building block of responsive web applications. You can do a lot with them: adapt the sizes, change a basic layout, show/hide some elements with CSS.