What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-16 02:10:08
app-root modal component
// These two containers are siblings in the DOM const appRoot = document.getElementById('app-root'); const modalRoot = document.getElementById('modal-root'); class Modal extends React.Component { constructor(props) { super(props); this.el = doc... Add solution -
Javascript 2021-10-26 03:39:08
Automatic Slideshow in react js
import React from 'react'; import SlidesShowStore from '../stores/SlidesShowStore'; import SlidesShowActions from '../actions/SlidesShowActions'; import Slides from '../components/Slides'; class SlidesShow extends React.Component { constructor(props... Add solution -
Javascript 2021-10-16 11:23:04
Parallax.js wrapper for react
import React, { Component } from 'react' import Parallax from 'parallax-js' // Now published on NPM class ParallaxComponent extends Component { componentDidMount() { this.parallax = new Parallax(this.scene) } componentWillUnmount() { this.p... 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
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5