Skip to content

className should be used instead of class #2

Closed
@idmontie

Description

@idmontie

Your HTML should be using className="container" instead of class="container"

For example this file should be using className instead of class.

class will throw warnings in the console when using it.

See Tags and Attributes in the React docs.

All attributes are camel-cased and the attributes class and for are className and htmlFor, respectively, to match the DOM API specification.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions