Skip to content

A react components library with the extreme user experience.

Notifications You must be signed in to change notification settings

XFreeCoder/x-ui

Repository files navigation

x-ui

A react components library with the extreme user experience

NPM JavaScript Style Guide CI Deploy

Install

yarn add x-ui

Usage

import React, { FC, useState } from 'react'
import { XNumber } from 'x-ui'
import { useInterval } from 'react-use'
import { random } from 'lodash'

const Random: FC = () => {
  const [value, setValue] = useState(random(-10000, 10000, true).toFixed(2))
  useInterval(() => {
    setValue(random(-10000, 10000, true).toFixed(2))
  }, 2000)
  return <XNumber value={value} />
}

License

MIT © XFreeCoder

Releases

No releases published

Packages

No packages published