App.js 684 B

1234567891011121314151617181920212223242526272829303132
  1. import React from 'react'
  2. import { List } from '@mokkon/reactjs'
  3. import '@mokkon/reactjs/dist/index.css'
  4. const App = () => {
  5. const pediatricians = [
  6. 'Michael Lopez',
  7. 'Sally Tran',
  8. 'Brian Lu',
  9. 'Troy Sakulbulwanthana',
  10. 'Lisa Wellington',
  11. ]
  12. const psychiatrists = [
  13. 'Miguel Rodriduez',
  14. 'Cassady Campbell',
  15. 'Mike Torrence',
  16. ]
  17. return <div>
  18. <div className="root">
  19. <div className="listContainer">
  20. <List groupName="Pediatricians" members={pediatricians} />
  21. </div>
  22. <div className="listContainer">
  23. <List groupName="Psychiatrists" members={psychiatrists} />
  24. </div>
  25. </div> </div>
  26. }
  27. export default App