Defining API functionsAbstracting server communication in frontend applications1 min read·ivanov.hashnode.devMay 20, 2021
How to type React events with TypeScripthttps://youtu.be/3PtiSy8G-Cs Sometimes when you write React and TypeScript code, you have to define event handlers. How do you choose the correct event type for them? Let's say we have an onChange event handler called handleTextChange: function App()...2 min read·ivanov.hashnode.devMay 20, 2021
React Dev ToolsTo develop React applications effectively - you’ll need to use React DevTools browser extension. It’s available for both Chrome and Firefox. It has two main features: view of a component tree and the current state and props of the selected component....3 min read·ivanov.hashnode.devFeb 27, 2019
Javascript `this`A lot of people find this keyword in Javascript very confusing. Depending on where is it used and defined it can have different value. This In Functions In normal Javascript functions this refers to global object. It will be window object in browser ...2 min read·ivanov.hashnode.devFeb 26, 2019
Handling Events In ReactJSHandling events in ReactJS is very similar to how it’s done on DOM elements. There are a few differences though. Event names are camelCased, so instead of onclick you have to use onClick: <button onclick="toggleDropdown()">Categories</button> // DOM ...2 min read·ivanov.hashnode.devFeb 25, 2019