react.js
20 03 2020
Maks Nemisj | javascript |
Have you ever been into a situation where you wanted to do something with your state inside useEffect hook but didn’t want to put it into a dependency array? react-hooks/exhaustive-deps is an excellent guard when working with primitive values, but as soon as you have an object in the state, it might stay on your […]
hooks, javascript, react.js, reactjs
27 06 2016
Maks Nemisj | javascript |
When preparing application for deploying to production env I want to ensure that everything is properly logged, especially things which are unexpected in code. That’s why, I think, proper error handling is crucial to any application. This is a short article on how to do an error handling when going live in isomporhic web app […]
error, express.js, expressjs, fluxible, isomorphic, javascript, node.js, nodejs, react.js, reactjs
28 04 2016
Maks Nemisj | javascript |
If you’ve decided to move react components to es6/es2015 syntax you’ve might found out that defining propTypes and contextTypes is not that seamless as it was. Babel@6.7.7 doesn’t yes support static properties on Classes and the most evident way to use propTypes is to append them to the class at the end: Though there is […]
es2015, es6, javascript, react.js, reactjs
21 05 2015
Maks Nemisj | javascript |
In this article I will explain “Why should you test react.js components”, “How can you do testing” and “What are the problems you might come across”. Testing solution which I use, doesn’t rely on the Test-utils of React and on DOM implementation ( so that you can do the node.js testing ). Why/How to test […]
javascript, mocha, node.js, react.js, test
7 05 2015
Maks Nemisj | javascript |
Sometimes easy things appear to be more complicated, than initially thought. For example conditional IE comments in HTML, which I had to add today to a code I write. At my work we have to support Internet Explorer browser version 9 an higher . In order to use media-queries we decided to use https://github.com/weblinc/media-match polyfill […]
comments, html, IE, isomorphic, javascript, react.js