Is it possible to reference local jsx files, inside my main jsx?
So lets say I have a react component such as react.py:
from panel.custom import ReactComponent
class TestComponent(ReactComponent):
_esm = "./test.jsx"
and in test.jsx
I have
import { OtherReactComponent } from './react/components/OtherReactComponent.jsx';
...
I keep getting browser errors of referencing this other file. So my main file, in the _esm is recognized but the import into the jsx referenced is not. How do you properly do this in Panel?
The alternative is to have one huge jsx file, which works but is really poor practice in my opinon.
Feel like I have tried everything and am looking for some guidance. Thanks!
Yeah thanks for the share, I do see that now. It looks like there could be a couple things at play here… I will hope that someone provides some feedback on how to do this, in the mean time I will experiment and share if I figure anything. Thanks!
@Marc do you know anybody with expertise here that could share an example or assist? I have tried every permutation I have found reference to inside panel and cannot figure this out. I figure this is a common thing that people would want to do - Thanks.