Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Convert camelCase prop names to alllowercase #187

@alexcjohnson

Description

@alexcjohnson

Regular HTML attributes use alllowercase, but React converts multi-word attributes to camelCase. There are a few exceptions: class turns into className, for turns into htmlFor. In dcc we're thinking of converting everything to snake_case plotly/dash-core-components#958 but in html we don't fully document these properties, just the prop names and basic description. The most natural place for users to look for the full documentation is however not React's docs but rather HTML reference sites like MDN so it feels like alllowercase would be more useful, and closer to the snake_case preferred by Python. We would still use snake for class_name and html_for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions