Category: Front-end

Best Practices of React Component

Consider below while designing react component Don’t update state (setState) in render method. Use constructor wisely. If you wish to bind event handlers or methods or initialize state then only use constructor. Do not assign props to state unless you wish to fix the value of state for that component. Plan meticulously if you are…

By admin_manish April 29, 2019 Off

Using window.postMessage to post messages between windows & iframes

HTML5PostMessage Using postMessage, a new feature in HTML5 to securely communicate between parent and child window, to post messages between windows & iframes. The Window.postMessage() method safely enables cross-origin communication. Normally, scripts on different pages are allowed to access each other if and only if the pages that executed them are at locations with the…

By Manish Kumar May 12, 2017 Off

Internationalization in Angular2

We all know that internationalization is important when it comes to bigger apps, or just the ones that are simply used across countries. Angular itself comes with very poor i18n support, which is why the community has built their own solutions to extend the framework’s functionalities to their needs. However, there’s finally a first-class solution…

By admin_manish April 14, 2016 3