javascript

Convert JavaScript Number to Number Array

· Reading time: ~1 minute(s) (89 words) programming javascript

I had a number which I wanted converting into an array where each digit of the number was an item in the array. I tried a few different ways of doing this but always ended up with a string array which wasn't what I wanted. (Continue reading)

React.js Unit Testing with Jest and Enzyme

· Reading time: ~3 minute(s) (524 words) programming javascript reactjs testing

I've written loads of unit tests in my lifetime for C# and JavaScript, but never gotten around to writing any for testing the actual React components because there's always been something more pressing. Time to put that right and take the plunge. (Continue reading)

Map() support in JavaScript ES6/ES2015

· Reading time: ~2 minute(s) (329 words) programming javascript

ECMAScript 6/2015 has brought a lot of new things to the world of JavaScript, and Map() is one of them. However, not all browsers are too keen on particular ways of using it... (Continue reading)

Rendering an array of data as a clickable list using React.js

· Reading time: ~2 minute(s) (348 words) programming javascript reactjs

React.js is great for quickly rendering arrays of data in a tabular format, and there's loads of grid-like packages out there in npm, but sometimes you just need to hand-crank something yourself. Which is fine, until you want the row to be clickable... (Continue reading)

React.js Tutorials

· Reading time: ~1 minute(s) (135 words) programming javascript reactjs

I've created a few pages on here which are now growing into a bit of a tutorial, so thought I'd collate the links into one post (and append links to any new related posts in the future) so it's easier to follow. (Continue reading)

React.js Continued... State!

· Reading time: ~5 minute(s) (903 words) programming javascript reactjs

This time I'll be looking at State. What it is and how to use it... (Continue reading)

React.js Continued... Components!

· Reading time: ~5 minute(s) (900 words) programming javascript reactjs

It's time to continue on from my React.js Revisited post that I made a few days ago. This time we'll look at creating some components... (Continue reading)

React.js Revisited

· Reading time: ~7 minute(s) (1314 words) programming javascript reactjs

It's been a while since I wrote up my beginner guide to React.js and I've been thinking it's time to revisit it. (Continue reading)