jsx-parser
jsx-parser copied to clipboard
Expected to throw error when parsing invalid tag
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
}