React.js route state name

reactjs-logo

React.js router is at version 2.0 as of now. It’s changing fast. So this may not work few months from now. I had the case where I wanted to create REST URLs but still re-use components where possible. That’s one of the selling points of React as a library. In my case I wanted to Continue…

jQuery Mobile Active Page URL

jqueryMobileURL

jQuery mobile contains several pages in DOM at once to make page transition smooth and fast, and also pre-caching static pages. If you need to get current URL, and decided to use window.location.href – it will return previous page URL, because active page is inserted into the DOM via AJAX. To get current page URL Continue…