Skip to content

Documentation on incompatibilities with React and best practices to avoid them #11805

Closed

Description

@roborourke

Is your feature request related to a problem? Please describe.

In #6441 I found that the way React output certain attribute names, specifically those relating to SVG attributes was inconsistent and proprietary. The Gutenberg serialiser wasn't compatible so my blocks would fail validation.

This is fine because the problem can be solved elsewhere, however it would be useful to come up a description of and best practices for handling the known differences between React and @wordpress/element.

Describe the solution you'd like

The solution is a page of documentation that outlines the key differences to look out for and best practices for avoiding them.

Activity

  1. added
    [Type] Developer Documentation
    on Nov 13, 2018
  2. paaljoachim commented on Jan 12, 2021

    @paaljoachim
    Contributor

    Is this issue still relevant?

  3. roborourke commented on Jan 13, 2021

    @roborourke
    ContributorAuthor

    Possibly not. I think there’s better / proper SVG support baked in now. I’ll close it out, can always be reopened if someone comes across it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] Developer Documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions