ezrogha.hashnode.devServer-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...Aug 21, 2023·4 min read
ezrogha.hashnode.devAnimate 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...Jun 10, 2022·3 min read
ezrogha.hashnode.devHow 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...Sep 30, 2021·3 min read
ezrogha.hashnode.devReact 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 = {...Apr 24, 2021·5 min read
ezrogha.hashnode.devKey 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...Nov 27, 2020·8 min read