Server-sent Events (SSE)Traditionally, a web client sends a request to the server which then responds with new data, meaning the web client always initiated the communication. With server-sent events, it's possible for a server to send new data to a web client at any time w...4 min read·ezrogha.hashnode.devAug 21, 2023
Animate SVG Path in RN with ReanimatedStart a new Expo project (Assuming you already installed expo globally) expo init animatedHouse install react-native-svg and react-native-reanimated yarn install react-native-svg react-native-reanimated Add Reanimated's babel plugin to your babel.con...3 min read·ezrogha.hashnode.devJun 10, 2022
How to render images in OffscreenCanvasJavascript is single threaded meaning everything runs on one thread, this thread is called the main thread. At times there's a lot running on the main thread which affects performance of our apps. To improve this performance, we want to reduce the lo...3 min read·ezrogha.hashnode.devSep 30, 2021
React Typescript quick referenceDefine types in class-components, Use angle brackets. interface CounterProps { message: string; }; interface CounterState { count: number; }; class Counter extends React.Component<CounterProps, CounterState> { state: CounterState = {...5 min read·ezrogha.hashnode.devApr 24, 2021
Key points about state management and rendering for better optimisation in ReactWhat I present is something I have experienced, read or learnt, therefore may not be the most comprehensive optimisation guide but I am sure you will learn something. Focus is mainly on functional components and React hooks. And now without further a...8 min read·ezrogha.hashnode.devNov 27, 2020