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

Streaming video in web application

Recently one of our flash developer raised an concern that when he has uploaded a video (.mp4) it is not working properly means not buffering. It start playing only after successful loading of full video which is not right and it should load and play..load and play. I analyze this and found that is it…

By Manish Kumar May 12, 2017 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