How to use upper-case-first - 5 common examples

To help you get started, we’ve selected a few upper-case-first examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github souporserious / react-aria / src / Trigger.jsx View on Github external
_handleEvent(name, e) {
    const onEvent = this.props[`on${upperCaseFirst(name)}`]

    // don't allow button component to trigger onClick
    if (this._isKeyDown) return;

    this._trigger(e)

    if (typeof onEvent === 'function') {
      onEvent(e)
    }
  }
github CrystallizeAPI / crystallize-frontend-boilerplate / pages / category / index.js View on Github external
render() {
    const { data, router } = this.props;
    const { loading, error, folder } = data;
    const title = upper(router.asPath.replace('/', ''));
    let folderData = false;

    if (error) {
      return (
        
          Could not load
          {title}
        
      );
    }

    if (loading) {
      return ;
    }

    const { children } = data.tree[0];
github BeeDesignLLC / GlutenProject.com / components / IngredientList.js View on Github external
const sentenceCase = s => upperCaseFirst(s.toLowerCase())
github blakeembrey / change-case / packages / capital-case / src / index.ts View on Github external
export function capitalCaseTransform(input: string) {
  return upperCaseFirst(input.toLowerCase());
}
github u-wave / web / src / components / UserRole / index.js View on Github external
function UserRole({ roleName }) {
  const { t } = useTranslator();

  return (
    
      {t(`roles.${roleName}`, { defaultValue: upperCaseFirst(roleName) })}
    
  );
}

upper-case-first

Transforms the string with the first character in upper cased

MIT
Latest version published 10 months ago

Package Health Score

63 / 100
Full package analysis

Popular upper-case-first functions