sanity doesn't add commas to its number types to separate thousands . To format them to make them more readable, you can use the following steps to add commas to the number types fetched, for example prices being displayed:
Import the above components into your slug.js, product component, cart component or any other place you want to use it
Example of implementation on the total price in the cart component:
sanity doesn't add commas to its number types to separate thousands . To format them to make them more readable, you can use the following steps to add commas to the number types fetched, for example prices being displayed:
Import the above components into your slug.js, product component, cart component or any other place you want to use it Example of implementation on the total price in the cart component: