requestAnimationFrame & polyfill in React 16

If you read my previous post, “My first time using React 16.0”, you know that I got the following warning when I typed npm run test in Terminal: > react-universal-blog-app@1.0.0 test /Users/mariacam/Development/react-universal-blog-app > jest PASS src/sum.test.js PASS src/App.test.js ● Console console.error node_modules/fbjs/lib/warning.js:33 Warning: React depends on requestAnimationFrame. Make sure that you load a polyfill in older browsers. Test Suites: 2 passed, 2 total Tests: 2 passed, 2 total Snapshots: 0 total Time: 1. [Read More]

My first time using React 16.0

Yesterday I started working on a new React project which I am calling for the time being React Universal Blog. I set up my basic workflow, directory structure, and files. I set up for Jest testing, initially mocking out stylesheets and images to make sure everything was working properly. Later I’ll switch over to mocking CSS Modules, because I use them with POSTCSS. It’s not necessary to do that unless you intend to use Jest Snapshot Testing, and I do! [Read More]

My first tech presentation

I’m giving my first technical presentation @ReactNYC meetup this Thursday, September 28, 2017. 😅 And I’m using reveal.js for my slide presentation. The subject is “React Workflows without Create React App”. I’m trying a fun and new approach which won’t be revealed until the presentation itself, and people will be able to continue referring to it after the presentation is over! I’m sharing the stage with some really cool speakers (and topics): [Read More]

removing caps from css headers

I was wrapping up my React Workflows without Create React App presentation using reveal.js for the ReactNYC meetup this Thursday, September 28, 2017, and was not pleased with the way some of my slide titles came out. Many of them were made up of code, and they looked awfully funny all in caps! I had never thought about changing the styling of css headers before. I just passively accepted that headers were in caps. [Read More]

Deploying to gh pages with git subtree

So I just completed a todo app the other day using React. This was the second time I followed the course “Build Your First Production Quality React Application” on The first time I followed the course exactly, using create-react-app. However, I kept on encountering errors in the console. Probably some of them were due to errors on my part, but some definitely related to create-react-app. And the thing is, I wasn’t able to figure out what the issue was without running the eject command to see what was under the hood. [Read More]

Adding new content to your hugo website hosted on gh-pages

As some of you might already know, I just recently switched from WordPress to the Hugo static website generator. So I'm still fairly new to it. And some of you might already know what a stickler I am for good developer documentation. So what does being a Hugo newbie have anything to do with developer docs? Plenty! And here I will focus specifically on publishing new content to your Hugo website hosted on the Github gh-pages branch. [Read More]

How to completely remove cached IP addresses

Recently I decided to migrate this website from WordPress to Hugo and hosting it on Github gh-pages. Best decision I ever made. But I had quite a time with getting the site to display on my computer! At first I thought that no one else could see it and that it wasn't correctly pointing to Github's IP address(es). I checked to see whether or not that was the case with a service called whatsmydns. [Read More]

Elections 2016: Choice is Good

New poll shows @CarlyFiorina rising to second place, @ScottWalker earning less than 1% of the vote. @SundayFutures — Fox News (@FoxNews) September 20, 2015 I was very glad to hear that Hillary Clinton is no longer the only "choice" for a female presidential candidate. This morning I found out that Carly has increased in popularity in the polls by a significant percentage. According to the CNN poll this morning, she is right behind Donald Trump (24%) at 15%. [Read More]

Crazy Twitter news

It's been a while since I have written any commentary on anything. Most happenings have been so way out that I wasn't able to even talk about it. But yesterday morning when I landed on Twitter, there were a couple of things I just couldn't understand being big enough news to be published on Twitter. Carlos Danger is a having a bad morning. — Jim Roberts (@nycjim) September 19, 2015 Remember this pseudonym? [Read More]

A bit about Marissa Mayer: The New CEO of Yahoo

There has been much hullabaloo since Marissa Mayer resigned from her post at Google, Inc. to become CEO of Yahoo. Since then, I have seen men lambasting and speculating how she probably might fail, right out the gates.They don’t see how she could take a leading role like this. Like her male predecessor was just so hot, huh? There is a very well written piece written by Owen Thomas and published in today’s Business Insider, entitled “Here’s How Facebook’s Sheryl Sandberg Congratulated Marissa Mayer”. [Read More]