hug.js 674 B

123456789101112131415161718192021222324252627282930313233
  1. <div>
  2. {__DEV__
  3. ? this.renderDevApp()
  4. : <div>
  5. {routes.map(route => (
  6. <MatchAsync
  7. key={`${route.to}-async`}
  8. pattern={route.to}
  9. exactly={route.to === "/"}
  10. getComponent={routeES6Modules[route.value]}
  11. />
  12. ))}
  13. </div>}
  14. </div>;
  15. <div>
  16. {__DEV__ && <div>
  17. {routes.map(route => (
  18. <MatchAsync
  19. key={`${route.to}-async`}
  20. pattern={route.to}
  21. exactly={route.to === "/"}
  22. getComponent={routeES6Modules[route.value]}
  23. />
  24. ))}
  25. </div>}
  26. </div>;
  27. <div>
  28. {member.memberName.memberSomething +
  29. (member.memberDef.memberSomething.signatures ? '()' : '')}
  30. </div>