Skip to content

JSX nodes should not specify children as an attribute #2

@haykam821

Description

@haykam821

Currently, children of JSX nodes are specified through the children attribute of a self-closing tag.

<h3
	className={q.a.secondaryHeaderText}
	children={["I agree to the following:"]}
/>

Properly placing children within the node between two tags would improve readability and be more in line with typical source code. For example:

<h3 className={q.a.secondaryHeaderText}>
	I agree to the following:
</h3>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions