JSPM

react-comma-separator

1.2.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 4
    • Score
      100M100P100Q25552F
    • License ISC

    split your price or digits with comma

    Package Exports

    • react-comma-separator
    • react-comma-separator/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-comma-separator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Example

    import {splitByComma} from "react-comma-separator";
    import { useEffect } from "react";
    
    function MyComponent(){
    
      useEffect(() => {
        console.log("splitByComma =",splitByComma(375000));
    
        //  Expected output - 3,75,000
      }, []);
        return(<div>
        Example for react-comma-separator
        </div>)
    }