About Mark

I'm a web designer

Continuing from our last post, this is now our component code: We can access the JSON using this.props.data. We can then loop through the updates using “map” and add a new table row for each update and store it all … Continue reading

Sample JSON data: The data is sorted by year and each update has a name and type. To import this data into a component: Import the JSON by linking to it. Set a variable to contain all the data. We … Continue reading

First you will need react-router-dom. Install it using: Here is the code that directs you to each page: BrowserRouter is the container. Switch will find and render the first page that matches the path/url. Link to the pages using NavLinks:

Here is the code: We set up the default state in the constructor and bind the on click function that toggles the state using the previous state. The bind makes “this” work in the function. Then the navigation’s class updates … Continue reading

It sounds simple enough. Just run npm install node-sass and change your css file file to a scss. Well… it didn’t work for me. What I need to do was update my Create-React-App to Version 2. To do this, go … Continue reading

Safari on mobile will resize your fonts if it thinks it’s too small. This is probably related to accessibility but it doesn’t make sense to me and is annoying. Anyways to fix it add this Original post here.

Sailormoon Drops is a mobile game that’s basically a Sailormoon Candy Crush game. I initially started playing it because other family members were playing it but kept playing it even after they stopped because I found it fun. The reasons … Continue reading

Original source: https://stackoverflow.com/questions/34766636/ios-browser-iframe-jumps-to-top-when-changing-css-or-content-using-javascriptI learnt today that iphones and iframes are not a good combo. Never the less it is combo you will run into if you build elearning modules for mobile. At least the fix is simple. Add this css … Continue reading

Well, on the 12th of August 2018, I got another 20 million experience which is how much you need to get to level 40. That’s under 10 months when it took me a year a 2 months to reach it … Continue reading

Here’s just some dates of the rest of my progression:level 35: 16th April 2017level 36: 8th May 2017level 37: 21st June 2017level 38: 28th July 2017level 39: 28th September 2017level 40: 29th November 2017Another sad thing about the new gym … Continue reading