MCPcopy Create free account
hub / github.com/kenberkeley/react-demo / MsgView

Function MsgView

src/views/msg.js:5–18  ·  view source on GitHub ↗
({ children, location })

Source from the content-addressed store, hash-verified

3
4/* 留言板 布局基页 */
5const MsgView = ({ children, location }) => (
6 <div>
7 { !location.pathname.startsWith('/msg/add') &&
8 <Link
9 className="btn btn-default btn-lg btn-block"
10 to="/msg/add">
11 添加消息
12 <span className="glyphicon glyphicon-plus"></span>
13 </Link>
14 }
15 <br/>
16 { children }
17 </div>
18)
19
20export default MsgView

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected