Most React frameworks like Antd do a good job of trapping keyboard focus within a modal. If there is a textbox and some buttons, tabbing from the textbox takes you to the button. Tabbing from the buttons takes you back to the textbox. The keyboard focus never goes to the controls in the background. This is what I mean by trapping keyboard focus within a Modal.…
Tag: Antd
Webpack build produces a bundle (app.js). The bundle contains scripts and styles. In this post, I will show how to analyze the bundle size.
Analyze bundle size
There is a command to produce build statistics in the form of JSON file.
webpack --profile --json > stats.json
There is an online analyse tool to analyze the build statistics. On uploading the JSON file, the analyse tool shows a dashboard.…