Redux Thunk middleware allows you to write action creators that return a function instead of an action. The thunk can be used to delay the dispatch of an action, or to dispatch only if a certain condition is met. The inner function receives the store methods dispatch and getState as parameters. - NPM
As part of a recent code challenge I was encouraged to work with a technology that I had never used before. Instead of learning a new tool to build my app I decided to learn how to test my app. This turned out to be a rather optimistic endeavor as I had never written tests for any of my applications so I had to learn a new practice in addition to learning a new technology.
While working on a code challenge, I was in need of setting up a <div>
that contained three columns of data, each column containing multiple sections and each section having a header and two columns of data. Since a table wasn’t the right tool for the job, I decided to look into either Flexboxes or Grids. Since my application was a React app I started by trying to use reactstrap’s Containers/Grids. However, that wasn’t going to work, since you also needed to import vanilla bootstrap to use reactstrap, and that made a mess of the CSS for the rest of the app. I didn’t want to have to fight with overriding the default bootstrap layout for the rest of the application, so I removed bootstrap and reactstrap and started building CSS from scratch.
I was asked in an interview this past week how I set up my Authentication on my applications – was it front-end or back-end? I was confused by this question since I thought that authentication was always handled just on the back-end and that authorization was typically handled by the front-end (based on the session cookie in the browser). After reviewing some articles on the topic I found that handling authentication on the back-end is the traditional way of dealing with Authentication, but you can also handle it on the front-end.
I was recently asked in a technical interview to list a few new input types included in HTML5. Since it was released in October of 2014 and I just started coding web applications in 2018, I’ve been working with it from the get-go and never worked with the “old” version of HTML for comparison. So here is a quick overview of some of the new bling you can find in HTML5.