Jjaxinjaxtrax.hashnode.dev·Nov 26, 2021 · 1 min readAdding React Developer Tools to a Redux/Typescript projectSo you want to add React Developer Tools to your redux/typescript project? Here's how... First you will want to make sure that you have React Developer Tools installed and enabled on your (chrome) browser. Then link your project up to your store by g...00
Jjaxinjaxtrax.hashnode.dev·Aug 5, 2021 · 1 min readTypeScript - re-use an interface's property using object access notationRe-use an interface's property by extracting it using normal object access notation This keeps the type in line/sync with the interface, eg if the interface property changes then the type will be updated automatically interface MyInterface { some...00
Jjaxinjaxtrax.hashnode.dev·Aug 2, 2021 · 1 min readTypescript - re-using imported types to ensure syncingImagine you have a React component that has imported a type. In this case it is an action type for interaction with Redux. import myAction from '../actions' import MyActionPayload from '.../types' within our component where we define the const mapDis...00
Jjaxinjaxtrax.hashnode.dev·Aug 2, 2021 · 1 min readTypescript - isolating a property from an interfaceYou can re-use an interface's property by extracting it using normal object access notation eg interface SomeInterface { usefulProperty: string | object {} } type newType = SomeInterface['usefulProperty'] // now newType is equal to string | ob...00
Jjaxinjaxtrax.hashnode.dev·Jul 30, 2021 · 4 min readJavascript Objects CheatsheetAll about working with objects in one place Here is a Javascript Object let fridge = { make: "Beko", model: "224", contents:{ vegetables: { favourite: 'lettuce', crunchy: 'carr...00