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
Currently we have return command in the top-level of the code for valid component. In my opinion if we have fully-compatible component just like in javascript, it would be better because I can have the same tooling e.g. ESLint.
Before
letgreeting="Have a great day";return(<><divclass="container border border-info p-3 text-center min-vw-100"><h1>Hologram AI</h1><p>What you are imagining today?</p></div></>);
After
letgreeting="Have a great day";constmain=()=>{return(<><divclass="container border border-info p-3 text-center min-vw-100"><h1>Hologram AI</h1><p>What you are imagining today?</p></div></>);}
Currently we have
return
command in the top-level of the code for valid component. In my opinion if we have fully-compatible component just like in javascript, it would be better because I can have the same tooling e.g. ESLint.Before
After
Related issue: near/near-discovery#269
The text was updated successfully, but these errors were encountered: