Home / JavaScript

JavaScript

Wide illustration of a typed web form connected to validation feedback and a successful submission status, with fields, a select control, a message area, and a checkbox shown in a clean developer interface.

React + TypeScript Forms: Complete Practical Example with Validation

A typed React form is easiest to maintain when one type describes the submitted values, another describes possible field errors, and every input is controlled by that state. The complete example below includes text, email, select, textarea, and checkbox inputs; validates them before submitting; prevents duplicate submissions; and exposes loading, success, and failure states.

Advertisement

How To Create Custom ScrollBar with CSS and JavaScript

In this article, we are going to create a custom scrollBar. Our Custom ScorllBar will display the gradient color progress on page scroll. We are not going to use any javascript framework like jQuery, etc. Only basic HTML, CSS and Vanilla JavaScript. If you are interested then take a look to the similar but horizontal progress bar in React Js.

Advertisement