1.0.2 • Published 4 years ago
react-camelcase v1.0.2
React camelCase
Convert a dash/dot/underscore/space separated string to camelCase:
foo-bar
→fooBar
Try in CodeSandbox
Install
$ npm install react-camelcase
Usage
import CamelCase from 'react-camelcase';
const App = () => (
<div>
<CamelCase string={'foo-bar'} />
</div>
);
//=> 'fooBar'
API
input
Type: string
License
MIT © Yohix