Open jedahan opened 5 years ago
@iamdustan any idea? I am not clear about the peer deps things related to devtools.
I’m guessing something between React and React DevTools versions and/or local or global react-devtools being installed (e.g https://github.com/Yomguithereal/react-blessed/blob/master/package.json#L55)
I see <box>
is used a lot, but where is it imported? I tried to run the example code by just installing react-blessed
, react
, and blessed
but there's no obvious place to get <box>
from. Am I missing some magic?
@dandrei the JSX transform transforms lowercased JSXIdentifiers
to strings. So that becomes React.createElement('box', props)
Thanks @iamdustan. My IDE complained about it so I thought I did something wrong, but the code works fine.
If I copy the following code to the examples/ folder inside a git checkout of react-blessed (
db718351aee3ab4f40a9f7b59c12270054ee5da3
), and change'react-blessed'
to'../src'
the following works fine. If I have it in a new project, I get this error:My package.json: