This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mongoose = require('libs/mongoose') | |
mongoose.set('debug', true) | |
var users = [ | |
{ | |
username: 'Admin', | |
password: 'admin_password' | |
}, | |
{ | |
username: 'Manager', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import PropTypes from "prop-types"; | |
import { createPortal } from "react-dom"; | |
class Portal extends React.Component { | |
static propTypes = { | |
children: PropTypes.node, | |
}; | |
state = { mounted: false }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let DebugComponent = ComponentToDebug => class ComponentNamedDebug extends Component { | |
render() { | |
return ( | |
<div className="debug"> | |
<ComponentToDebug {...this.props}/> | |
</div> | |
) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
</body> | |
</html> |