SHARE
TWEET

Untitled

a guest Aug 18th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let tabArr = [
  2.     { id: 1, name: 'george' },
  3.     { id: 2, name: 'dmitry' },
  4.     { id: 3, name: 'lawyer' },
  5.   ];
  6.  
  7.   const UibTabs = ({ tabArr }) => (
  8.     <Tabs {...tabProps.tabs}>
  9.       {tabArr.map(el => (
  10.         <Tab {...tabProps.tab} key={el.id} label={el.name}>
  11.           <div>{el.name}</div>
  12.         </Tab>
  13.       ))}
  14.     </Tabs>
  15.   );
  16.  
  17.   <UibTabs tabArr={tabArr} />
  18.  
  19.   state = {
  20.     known: false,
  21.   };
  22.   componentDidMount() {}
  23.  
  24.   isKnown = () => {
  25.     this.setState({
  26.       known: !this.state.known,
  27.     });
  28.   };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top