@taystack/use-capitalized

1.0.3 • Public • Published

use-capitalized

Capitalizes and returns a text argument during the render process.

NPM JavaScript Style Guide

Install

yarn add @taystack/use-capitalized

Usage

import React, { Component } from "react";

import useCapitalized from "@taystack/use-capitalized";

const Example = ({ name }) => {
  const example = useCapitalized(name);
  return (
    <div>{example}</div>
  );
}

License

MIT © taystack


This hook is created using create-react-hook.

Dependents (0)

Package Sidebar

Install

npm i @taystack/use-capitalized

Weekly Downloads

6

Version

1.0.3

License

MIT

Unpacked Size

15.8 kB

Total Files

15

Last publish

Collaborators

  • taystack