https://github.com/taystack/use-capitalized
React hook exported as a module for npm
https://github.com/taystack/use-capitalized
Last synced: 8 months ago
JSON representation
React hook exported as a module for npm
- Host: GitHub
- URL: https://github.com/taystack/use-capitalized
- Owner: taystack
- License: mit
- Created: 2020-02-15T00:06:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T07:19:16.000Z (almost 3 years ago)
- Last Synced: 2025-04-10T00:55:14.934Z (8 months ago)
- Language: JavaScript
- Size: 2.79 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 42
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# use-capitalized
> Capitalizes and returns a text argument during the render process.
[](https://www.npmjs.com/package/@taystack/use-capitalized) [](https://standardjs.com)
## Install
```bash
yarn add @taystack/use-capitalized
```
## Usage
```jsx
import React, { Component } from "react";
import useCapitalized from "@taystack/use-capitalized";
const Example = ({ name }) => {
const example = useCapitalized(name);
return (
{example}
);
}
```
## License
MIT © [taystack](https://github.com/taystack)
---
This hook is created using [create-react-hook](https://github.com/hermanya/create-react-hook).