Skip to content

jbrantly/TS4668_reactjsx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Run using: tsc --module commonjs --jsx preserve app.tsx

This is intended to show that without isolating referenced globals even for proper external modules you will run into issues. This project has the following structure:

  • app
    • react
    • someComponent
      • react

Note that react and someComponent are proper external modules. react introduces a global in the JSX namespace which is required for proper JSX integration. someComponent also references a react definition so that it can access React.Component. In this case, the JSX namespace results in a "Duplicate identifier" error.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published