What do you want to save?
Add Code snippet
New code examples
-
Other 2021-09-06 16:25:02
React native icon spin
import React, { useEffect } from 'react'; import { View, StyleSheet, Animated, Easing } from 'react-native'; import { FontAwesome } from '@expo/vector-icons'; const Spinner = () => { const spinValue = new Animated.Value(0); useEffect(() => { ... Add solution -
Javascript 2021-09-06 15:25:02
how to change mui ripple color
const styles = { buttonRipple: { color: "#f00" } }; const MyButton = props => ( <Button TouchRippleProps={{ classes: { root: props.classes.buttonRipple } }}>Click me</Button> ); export default withStyles(styles)(MyButton) Add solution -
Javascript 2021-09-06 12:04:02
stop playing music when page is closed react
import React, { useRef, useEffect } from 'react'; import waves from '../audio/waves.mp3'; const RockyCoast = (props) => { // the audio variable needs to be stored in a ref in order to access it across renders let audio = useRef(); // s... Add solution -
Other 2021-09-05 20:28:01
react click outside class implementation
import React, { Component } from 'react'; import PropTypes from 'prop-types'; /** * Component that alerts if you click outside of it */ export default class OutsideAlerter extends Component { constructor(props) { super(props); this... Add solution -
Javascript 2021-09-05 19:33:02
module system in javascript
// Default exports //Function.js// export default () => console.log("Hello"); export default someValue = 10; //Main.js// import oneFunc from './Function'; oneFunc(); // Hello import value from './Function'; console.log(value) // 10 // Na... Add solution -
Html 2021-09-05 17:16:02
vuejs change item on scroll
<!-- If you don't use Tailwind, use css classes in <script></script> --> <template> <div v-bind:class="darkMode ? darkModeBodyClass : 'transition ease-out duration-700'"> <main> <router-view :d... Add solution
Best helpers
Ranking is empty