Relative Content

Tag Archive for reactjstypescript

‘MaterialsList’ cannot be used as a JSX component

II have my MaterialsList component wrapped in a fragment so it should be returning a JSX component, and I’ve tried setting the TypeScript interpreter to workspace in my VS Code but it’s not an option when I go to “TypeScript: Select TypeScript Version”. It only shows “Use VS Code’s Version 5.5.4”. Here is my component:

‘MaterialsList’ cannot be used as a JSX component

II have my MaterialsList component wrapped in a fragment so it should be returning a JSX component, and I’ve tried setting the TypeScript interpreter to workspace in my VS Code but it’s not an option when I go to “TypeScript: Select TypeScript Version”. It only shows “Use VS Code’s Version 5.5.4”. Here is my component:

Not able to get proper value of tranfer list after changing select in material UI React

Hi In our project we are using react material Ui. We are using select and transfer list function in our Ui. We have condition that after changing Select value in dropdown right side of the tranfer list should prepopulate. Currently functionality wise it is working but when I try to print it is taking past prepopulated value for the transfer list. Below is my code.Can someone please help me? Let me know If I need to add any other details