I am trying to follow the streamlit component tutorial . I struggled in step "render components from Streamlit:
import React, { useEffect } from "react";
import { Streamlit, withStreamlitConnection } from "./streamlit";
it seems to me, that the second line should be:
import { Streamlit, withStreamlitConnection } from "streamlit-component-lib";
at least then it works on my installation. If the instructions are right, then there should be a file streamlit.tsx in the same folder right?. I am totally new to the whole react thing and surely I must have missed something in the previous steps (for the second time now…). where does the ./streamlit import reference come from? thanks for your clarification.