Skip to content

Expected to throw error when parsing invalid tag #2

@wongjiahau

Description

@wongjiahau

Input

var tag = `<hello</>`;
JSXParser(tag);

Expected

Expect the JSXParser to throw error.

Actual

A JSON object is returned.

{
type:"hello<"
props:Object
children:Array[0]
isVoidTag:true
}

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