Mainly difference is the way you do the imports.
- You import React object and assign an alias to it as 'React'. After that you use the "property" FC of the aliased import
- You import React and you use the "property" FC of the import
- You import React and then you import the named export FC which is the one you use later.
In the three cases you are importing the default exported from the module 'react' as React and in the third you import also the named export FC.
There is no just one valid way to do it and the result is the same.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…