1.0.6 • Published 4 years ago
react-user-log v1.0.6
Install
npm i react-user-log
Usage
import React from 'react'
import UserLog from 'UserLog'
class Demo extends React.Component {
constructor() {
super();
this.state = {
userId: "1",
userName: "admin",
pageName: "主页",
pageUrl: "/home",
routeId: String(Math.random()),
wsApiPrefix: 'wx://localhost',
appType: 1
}
}
render() {
const { userId, userName, pageName, pageUrl, routeId } = this.state;
const UserLogProps = { userId, userName, pageName, pageUrl, routeId };
return <UserLog {...UserLogProps} />;
}
}
export default Demo;