jsx-parser icon indicating copy to clipboard operation
jsx-parser copied to clipboard

Expected to throw error when parsing invalid tag

Open wongjiahau opened this issue 8 years ago • 0 comments

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
}

wongjiahau avatar Oct 05 '17 08:10 wongjiahau