Category: JavaScript
Last month I attended the Quantify Datathon 2017 event. We are given AirBnb data from insideairbnb.com, then we have 5 days to explore and comes up with the model and/or visualization. Here is the final product from my team, Team Gravy.
Creating a modal box (or popup) is not difficult, but also not easy. I spent 2-3 days finding a solution to build a modal in my React project. As my background is from jQuery and pure JavaScript, I was not aware of the possibility for ReactDOM to build a modal. In this post, I will go through the process of building a modal without JavaScript, and how it is solved by “react-modal” component.
It was 3 years ago that I worked with people who used React for the first time. After that, I had many chances to get in contact with React. But I haven’t really write frontend using React until today.
I am quite amazed with the React ecosystem and would like to share my comparison here.
I got this error when trying to use foundation 6’s JavaScript from Essential pack (downloaded from here: http://foundation.zurb.com/sites/download.html/)
There is the application I built today which required to send data between JavaScript and PHP. Therefore, instead of sending AJAX request everytime data has changed, I decided to set cookies from JS and use PHP to retrieve the cookies when needed.
I recently found this weird bug of MMenu.js in Chrome. Having spent hours of searching and testing, I would like to share my solution here.
For those who haven’t heard of Promise in JavaScript before, it is a function to make JavaScript wait for something before running other operation. It is implemented in modern browsers, or just use one of those Promise polyfill.