ShinyChang/React-Text-Truncate

global.react is undefined

Closed this issue · 3 comments

When lib/index.js is loaded in a browser, it's unable to find global.react. Shouldn't it be global.React? Looking at Reacts documentation and their jsfiddle example, I see that it's available under window.React not window.react

Thoughts?

Thanks!

Confirmed. Dunno why babel transform incorrect.

Hi @jasonenglish ,
I fixed this problem. You can checkout the newest version :D

Awesome, thanks!