TypeScipt / Javascript

Custom Label with multiple styles in TextField of Fluent UI

By default Fluent UI TextField component as a label for the field renders plain text and you can not apply multiple styles to several parts of it. But if you want to write a comment after the field name, for example, (maximum 50 characters), you can’t do it. Read more»

TypeScipt / Javascript

Determine the first and last days of a quarter with Day.js

Day.js

Determining the first and last days of a quarter is a common task for accounting applications and reporting. For web applications, I have been using Day.js (https://day.js.org/) for a long time instead of the well-known moment. There is an extension for Day.js that allows you to determine the first and last days of a quarter. Read more»

TypeScipt / Javascript

Vite vs Create-react-app

Today I talked to my colleague about the speed of Hot Reload when developing React applications. I told him that I tried launching from WSL and that everything updates faster. This is about pure React, not for SPFX. I was asked how I created a project and how it works for me. And it turns […] Read more»

TypeScipt / Javascript

Horizontal scroll of Div on Button Click in React

The code of the React component to scroll DIV content by axe X. It can be useful when you have a wide table and a narrow screen. Or a designer had a very cool idea of the interface. Read more»

TypeScipt / Javascript

The implementation of the buttons with Horisontal Scroll action for Material UI DataGrid

Material UI

If you use a Pro version of Material UI, then you have a tool, how to switch the cells in the DataGrid table. But if you work with a wide table and you just want to make it more comfortable to work with it, there are some tricks for that. The first thing is to […] Read more»

TypeScipt / Javascript

How to return custom date format with localization in TypeScript / JavaScript

Obviously, true developers prefer to return the date in a digital format, for example, ‘24.01.2024’, ’24-01-2024′ and various combinations of this. But customers often want to work with human dates. In this post you can find how to return the custom localized date and how to use it with a Fluent-UI component DatePicker. Read more»

TypeScipt / Javascript

Write the elements of an array in JSX React block with a comma spacer between and a dot in the end

We have an array of strings in React Application. Let’s call it ‘selectedParticipants’. And for the summary page we need to write all the members of array in one line with comma ‘,’ between elements and dot ‘.’ in the end in JSX block. Here is a small snippet. Read more»

TypeScipt / Javascript

Popular Posts