vulcan-npm icon indicating copy to clipboard operation
vulcan-npm copied to clipboard

Remove import React

Open eric-burel opened this issue 4 years ago • 2 comments

Like we do in Next, we shouldn't need to explicitely import React in any .tsx file

eric-burel avatar Sep 11 '20 15:09 eric-burel

React 17 introduced a new JSX transform that does not require this import. See : https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html Should be straightforward to install

Apollinaire avatar Nov 08 '20 20:11 Apollinaire

Great to know, I am currently waiting for next Storybook 6.x release, that stabilizes the issues we currently have when React versions are mismatching, before updating Next and React (should be done within a few days, it is already in alpha).

eric-burel avatar Nov 09 '20 08:11 eric-burel