Notes of Maks Nemisj

Experiments with JavaScript

javascript

How to test React.js components

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 […]

, , , ,

Conditional ie comments in react.js

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 […]

, , , , ,

Using = null; instead of ;

How often have you done this in you code? Instead of this? While it might be used to accomplish the same result, the code above has some hidden pitfall in it. Image situation that you always use the code above, also inside your for statements. If you wouldn’t be careful enough, you might trap in […]

,

Focus, tabIndex and behavior of browsers

“Do not trust defaults” # Prefix Recently I had an opportunity to deal with focus behavior in browsers, with tabindex attribute and other focus related stuff. When I was doing this work I came across interesting aspects of focus implementation in different browsers. This article is exactly about all these things. Tested browsers are IE […]

, , , , ,

Previous Posts