Forum Discussion
jbrundagejr
4 years agoRegular Visitor
PowerBI with React Functional Components
Hello: Building my second custom PBI visual, this time with React. I am using functional components and at a complete loss when it comes to getting the data from the update method into App.tsx. A...
jbrundagejr
4 years agoRegular Visitor
Thank you for the reply! I've changed it around so I no longer get the TS complaints, but I still don't understand by my update method in visual.ts isn't passing the props to App.tsx. At the end of the update method, I pass in my props and call it like so:
App({
dataArr: dataObjectArray,
height,
width
})
this.update(options)
}
And my App is setup like so:
export const App: React.FC<AppProps> = (props) => {
const { dataArr, width, height } = props;
}
A console log in my App of dataArr, width and height all return undefined which I don't understand. Any insight as to how to get my data talking to my App.tsx (a functional component) from the visual.ts file would be greatly appreciated!!
eagragh
3 years agoRegular Visitor
jbrundagejr would you be able to update react functional component custom visual.
Or any documentation you found for, how to update react functional component using power bi custom visual. As I am new to this and stuck. As not able to update react component.
Any help would be appreciated.
Thanks