You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PropsTable are not being rendered if I use the Button.jsx file on a package (@itreverie/itr-components-basics) but if I use the same code in the Button.jsx file inside the docz project, the table renders correctly.
If you use import { Button } from '@itreverie/itr-components-basics'. It doesn't render the table but
If you use import Button from './Button' It renders the table correctly.
Note: The repo for the external components can be found in itr-components-basics, it is published in npm.
I would expect that if Button.jsx code is the same in my external package or in the file on my docz package the PropsTable should render. I do not understand why the table is not rendered when I use the Button.jsx on the external package.
The text was updated successfully, but these errors were encountered:
Hello @nicholasess Thanks so much for your response. When you say I need to use "export default" what exactly do you mean. I think I am using export default Button; (as you can see in the image). I am sorry if I am not getting your point and it might be something basic, could you please be more specific?
Bug Report
PropsTable are not being rendered if I use the Button.jsx file on a package (@itreverie/itr-components-basics) but if I use the same code in the Button.jsx file inside the docz project, the table renders correctly.
To Reproduce
itr-components-lib
import { Button } from '@itreverie/itr-components-basics'
. It doesn't render the table butimport Button from './Button'
It renders the table correctly.Note: The repo for the external components can be found in itr-components-basics, it is published in npm.
I would expect that if Button.jsx code is the same in my external package or in the file on my docz package the PropsTable should render. I do not understand why the table is not rendered when I use the Button.jsx on the external package.
The text was updated successfully, but these errors were encountered: