Closed omidb closed 9 years ago
Hi, this is different with the documents:
private val MainMenu = ReactComponentB[Props]("MainMenu") .stateless .backend(new Backend(_)) .render((P, _, B) => { <.ul(bss.navbar)( // build a list of menu items for (item <- menuItems) yield { <.li((P.activeLocation == item.location) ?= (^.className := "active"), MainRouter.routerLink(item.location)(item.icon, " ", item.label(P)) ) } ) }) .componentDidMount(_.backend.mounted()) .build
would be nice if you update the book.
Hi, this is different with the documents:
would be nice if you update the book.