What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-19 13:55:03
use theme in class component material ui
import React from "react"; import { makeStyles } from "@material-ui/core/styles"; const useStyles = makeStyles((theme) => ({ root: { backgroundColor: theme.palette.secondary.main } })); export default function App() { co... Add solution -
Javascript 2021-09-18 22:16:03
how to creat 6 image ui for react native
import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import Gallery from './src/pages/Gallery'; export default class ReactNativeCommonScreens extends Component { render() { &nbs... Add solution -
Javascript 2021-09-18 15:46:03
nodejs interface
// MenuInterface.jsclass MenuInterface { constructor() { if(!this.getItems) { throw new Error("Menu's must have items!"); } }}// ---// file index.jsimport MenuInterface from './MenuInterface';class Menu extends MenuInterface { // n... Add solution -
Javascript 2021-09-18 08:36:03
how to make a navbar in react
import React from 'react'; import { Nav, NavLink, Bars, NavMenu, NavBtn, NavBtnLink, } from './NavbarElements'; const Navbar = () => { return ( <> <Nav> <Bars /> <NavMenu> <NavLink to='/about' activeStyle> Abo... Add solution -
Javascript 2021-09-18 08:20:02
material-ui add icon to switch when on
import React from 'react'; import Switch from '@material-ui/core/Switch'; import AccountCircleIcon from '@material-ui/icons/AccountCircle'; export default function App() { return ( <Switch checkedIcon={<AccountCircleIcon/>} /> ... Add solution -
Javascript 2021-09-18 03:03:02
change background color react native
import React from 'react'; import { View } from 'react-native' export default function App() { return ( <View style={{ backgroundColor: "blue", flex: 1 }}> // this View element covers the entire screen thanks to "flex:1" ... Add solution
Best helpers
Ranking is empty