You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importReact,{Component}from'react';exportdefaultclassLabelextendsComponent{render(){const{ text }=this.props;return<divclassName="label">{text}</div>}}
TypeScript Version: 2.3.2
Code
Label.js
Button.js
Expected behavior:
The
import Label from 'Label';
should be present in the output of the Button.jsActual behavior:
The
import Label from 'Label';
is being omited.The problem is related with the object spread
{...rest}
. If I remove it the code works correctly.I have created a repository with this code
https://github.com/axelhzf/ts-transpile-jsx-remove-import
The text was updated successfully, but these errors were encountered: