1.0.3 • Published 5 years ago
@taystack/use-capitalized v1.0.3
use-capitalized
Capitalizes and returns a text argument during the render process.
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.