MCPcopy Create free account
hub / github.com/react-dnd/react-dnd / renderLink

Method renderLink

site/components/SideBar.js:26–40  ·  view source on GitHub ↗
({ title, location }, key)

Source from the content-addressed store, hash-verified

24 }
25
26 renderLink({ title, location }, key) {
27 const arrow = <span className="arrowBullet" />;
28
29 let linkClass = 'SideBar-item';
30 if (this.props.example.location === location) {
31 linkClass += ' SideBar-item--selected';
32 }
33
34 return (
35 <a key={key} href={location} target="_self" className={linkClass}>
36 <span className="SideBar-itemText">{title}</span>
37 {arrow}
38 </a>
39 );
40 }
41}

Callers 1

renderGroupMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected