How would you do this if you have nested objects? For instance the api that i'm using has a posts object inside the data object that contains what i need. How would i pass that to typescript?
but this approach allows you to show only predefined content. but you won't be able to show arbitrary content on tabs. and it wouldn't hurt to have a link to the code.
Hey @Roman you can use this component without predefined content too. You can use fetch API to pass data to the Tabs component. Here is the link to the code: codesandbox.io/s/react-tabs-33m97?file=/src/App.js
@@Vanss472 thanks for the link. but these tabs cannot receive an entire page with several HTML5 elements (drop-down lists, input fields for letters, numbers and dates). these tabs receive only text.
@@romanmed9035 yes, it all depends on your data structure. So for example for your first object in the array(in my demo Yoga), you want a drop-down list you add the data to that object, and then of course you have to call that in the content area of the code(Tabs.tsx).