React Title Case
Convert a string to Title Case
yohix love github
→Yohix Love Github
Try in CodeSandbox
Install
$ npm install react-title-case
Usage
; const App = <div> <TitleCase string='yohix love github' /> </div>; // => 'Yohix Love Github'
API
string={input}
Type: string
<TitleCase = /> // => 'Yohix Love Github'
Modules used
- title-case - Transform a string into title case following English rules.
License
MIT © Yohix