Beeceptor helps for us to mock and intercept the Rest APIs very easily and quickly Use cases Build a mock Rest API in a few seconds. Free, No coding required. Inspect payloads of any HTTP request (GET, POST, PUT, PATCH, DELETE, etc). Customizable responses to simulate API response and failures. When load testing your API, …
Draft.js
Draft.js is a framework for building rich text editors in React, powered by an immutable model and abstracting over cross-browser differences. Draft.js makes it easy to build any type of rich text input, whether you’re just looking to support a few inline text styles or building a complex text editor for composing long-form articles. https://draftjs.org/
Absolute Imports in Create React App
By default ES6 modules in create-react-app use relative paths. But using relative paths is a real pain when you start dealing with deeply nested tree structures because you end up with dot-dot syndrome. After digging through a bunch of github issues I was finally able to boil down the steps required to implement absolute imports …
React – Prevent Render when Props and State change
When we change the state or props of the component, render method is called by default. In order to prevent this behavior, we can use shouldComponentUpdate method. If we return false from this method, render is not called. This method receives props and state as parameter so we can check if certain state or props …
Defs and clipPath in SVG
If you put clipPath into defs and use inkscape to convert svg to png, defs is removed automatically. Do you understand what I mean? If not send mail to novofox@outlook.com directly. This is very tricky experience and knowledge. If you work svg and inkscape, this knowledge will be very helpful. 😉
Use Mapbox in Angular
https://wykks.github.io/ngx-mapbox-gl/ This is so cool map box example in angular.
Lazy Loading for iFrame
When we work on the speed optimization of website, it’s important to figure out the iFrame loading issue as it require lots of requests and loading time. In order to fix it, we can apply the lazy loading effect to the iFrame. There are few helpers to implement the lazy loading for iFrame, but the …
Creating a hole in a Div element
Box shadow support almost all modern browsers, so, you can do what you want (I hope, I understood you right) this way: html: css: So, the block will be transparent, and all around it will be hightlighted with its shadow. Example: http://codepen.io/anon/pen/ultKh