Closed itzsaga closed 6 years ago
When I try to do "Convert Stateless to Stateful Component" on this code:
const DepositRow = ({ depositPercentage, gridInputStyle, gridItemStyle, handleUpdate, total }) => { const depositAmount = (total * (depositPercentage / 100)).toFixed(2); return ( <Fragment> <div className={gridItemStyle}>Deposit %:</div> <input type="text" name="depositPercentage" value={depositPercentage} onChange={e => handleUpdate(e)} className={gridInputStyle} /> <div className={gridItemStyle}>Deposit:</div> <div className={gridItemStyle}>${depositAmount}</div> <div /> </Fragment> ); };
I get this error:
Using 4.0.4
@itzsaga Fixed by https://github.com/wix/vscode-glean/commit/e3bafd918bfdff4f5fae10b8dbf46622da7330b3
Please test on version 4.0.5
Works now. Awesome!
When I try to do "Convert Stateless to Stateful Component" on this code:
I get this error:
Using 4.0.4