Installation Change into your project root folder (package.json must exist) and run Verify that it was correctly installed by running Cypress: or in case this makes trouble (it did for me, see below) run that instead: For convenience you can add a script to package.json: The official docs provide further info about installation such as […]

Let’s say you have and want to get rid of item2. How do you do that in JavaScript? Now, newData contains: Or, if you have the key stored as a string in a variable called key: A simple utility function would look like this: Using a list of allowed keys This will make a shallow […]

Cloud Firestore is a cloud-hosted, NoSQL database that your iOS, Android, and web apps can access directly via native SDKs. Initialize Cloud Firestore Get Firebase configuration from web console and then use it to initialize the app in your web frontend: A collection contains documents and nothing else. Documents contain data as property-value pairs. The […]

Installing recoil Add RecoilRoot to your root component Atoms An atom is (a piece) of state that can shared between your components is what components can use to read from or write to will trigger a re-render for any component (that uses the atom) whenever the atom state changed You create atom shared state like […]

Installing TypeScript Choose one of these This will allow you to run tsc command. To test whether a TypeScript file compiles you create one: and then run tsc index.ts. You end up with an error: The reason is that name property is already defined on the window object (global scope), so you either have to […]

We are going to have a look at how you can test your React Components and your Redux reducers and actions.