For example, to override the AppBar (https://material-ui-next.com/api/app-bar/) root class we can do the following:
1 - Add the property classes in the AppBar component:
<AppBar classes={{root: 'my-root-class'}}
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
// Update these with values suitable for your network. | |
//const char *ssid = "localwifi"; | |
//const char *password = "localpassword"; | |
const char *ssid = "MyAP"; |
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/1.7.2/socket.io.js"></script> | |
<script> | |
var socket = io('http://localhost:8088'); | |
var route = createRouter((reply) => { | |
socket.on('rep', reply) | |
}) | |
socket.emit('req', route('hello world', (data) => { | |
console.log(data) | |
})) |
/** ********************************************************* | |
* API - Model - User | |
********************************************************* */ | |
module.exports = function (sequelize, DataTypes) { | |
return sequelize.define('User', { | |
username: DataTypes.STRING, | |
password: DataTypes.STRING, | |
firstName: DataTypes.STRING, | |
lastName: DataTypes.STRING, |
User.aggregate([ | |
{ | |
/* Filter out users who have not yet subscribed */ | |
$match: { | |
/* "joined" is an ISODate field */ | |
'subscription.joined': {$ne: null} | |
} | |
}, | |
{ | |
/* group by year and month of the subscription event */ |
import React from "react"; | |
// Usage | |
function App() { | |
const draw = React.useCallback(gl => { | |
gl.clearColor(0.0, 0.0, 0.0, 1.0); | |
gl.clearDepth(1.0); | |
gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT); | |
}, []); | |
const canvasRef = useCanvas(draw, "webgl2"); |
node_modules |
import React from 'react' | |
export const useIsMounted = () => { | |
const ref = React.useRef(false) | |
const [, setIsMounted] = React.useState(false) | |
React.useEffect(() => { | |
ref.current = true | |
setIsMounted(true) | |
return () => (ref.current = false) | |
}, []) |
For example, to override the AppBar (https://material-ui-next.com/api/app-bar/) root class we can do the following:
1 - Add the property classes in the AppBar component:
<AppBar classes={{root: 'my-root-class'}}
Go through this amazon link http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html