Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import React, { Component } from "react";
import PropTypes from "prop-types";
// import SyntaxHighlighter from "react-syntax-highlighter";
import SyntaxHighlighter from "react-syntax-highlighter";
const md5 = require("md5");
var Scroll = require("react-scroll");
var Link = Scroll.Link;
var DirectLink = Scroll.DirectLink;
var Element = Scroll.Element;
var Events = Scroll.Events;
var scroll = Scroll.animateScroll;
var scrollSpy = Scroll.scrollSpy;
import { docco } from "react-syntax-highlighter/styles/hljs";
import { atomDark } from "react-syntax-highlighter/styles/prism";
var log = require("loglevel");
const _ = require("lodash");
import axios from "axios";
let isDev = require("isdev");
console.log("preview isDev:", isDev);
if (isDev) {
log.setLevel("debug");
log.debug("in Development");
} else {
log.setLevel("silent");
function logPageView() {
ReactGA.set({
page: window.location.pathname + window.location.search
});
ReactGA.pageview(window.location.pathname + window.location.search);
}
var React = require('react');
var Scroll = require('react-scroll');
// Scrolling variables
var Link = Scroll.Link;
var DirectLink = Scroll.DirectLink;
var Element = Scroll.Element;
var Events = Scroll.Events;
var scroll = Scroll.animateScroll;
var scrollSpy = Scroll.scrollSpy;
var scroller = Scroll.scroller;
var durationFn = function (deltaTop) {
return deltaTop;
};
// List of elements
const elementList = [
{
id: 'intro',
name: "Introduction"
}, {
id: 'nested-data',
name: "Nested Data"
}, {
id: 'linear',
import React, { Component } from 'react';
// ES6 Imports
import Scroll from 'react-scroll'; // Imports all Mixins
import {scroller} from 'react-scroll'; //Imports scroller mixin, can use as scroller.scrollTo()
// Or Access Link,Element,etc as follows
let Link = Scroll.Link;
let Element = Scroll.Element;
let Events = Scroll.Events;
let scroll = Scroll.animateScroll;
let scrollSpy = Scroll.scrollSpy;
import './../styles/Welcome.css';
class Welcome extends Component {
render() {
return (
<div>
<div id="page-content">
<div>
<img src="./../../welcomelogo.png">
</div>
<div></div></div></div>
"use strict";
var React = require('react');
var ReactDOM = require('react-dom');
import * as Scroll from 'react-scroll'
var Link = Scroll.Link;
var DirectLink = Scroll.DirectLink;
var Element = Scroll.Element;
var Events = Scroll.Events;
var scroll = Scroll.animateScroll;
var scrollSpy = Scroll.scrollSpy;
var durationFn = function(deltaTop) {
return deltaTop;
};
class Section extends React.Component{
constructor (props){
super(props);
this.scrollToTop = this.scrollToTop.bind(this);
}
componentDidMount() {
Events.scrollEvent.register('begin', function() {
console.log("begin", arguments);
"use strict";
var React = require('react');
var ReactDOM = require('react-dom');
var Scroll = require('react-scroll');
var Link = Scroll.Link;
var DirectLink = Scroll.DirectLink;
var Element = Scroll.Element;
var Events = Scroll.Events;
var scroll = Scroll.animateScroll;
var scrollSpy = Scroll.scrollSpy;
var durationFn = function(deltaTop) {
return deltaTop;
};
class Section extends React.Component{
constructor (props){
super(props);
this.scrollToTop = this.scrollToTop.bind(this);
}
componentDidMount() {
Events.scrollEvent.register('begin', function() {
console.log("begin", arguments);
"use strict";
import React from 'react';
import ReactDOM from 'react-dom';
import Scroll from 'react-scroll';
var Link = Scroll.Link;
var DirectLink = Scroll.DirectLink;
var Element = Scroll.Element;
var Events = Scroll.Events;
var scroll = Scroll.animateScroll;
var scrollSpy = Scroll.scrollSpy;
var durationFn = function(deltaTop) {
return deltaTop;
};
class Section extends React.Component{
constructor (props){
super(props);
this.scrollToTop = this.scrollToTop.bind(this);
}
componentDidMount() {
Events.scrollEvent.register('begin', function() {
console.log("begin", arguments);
import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import { Container, Grid, Header, Icon, List, Segment } from 'semantic-ui-react'
import Scroll from 'react-scroll'
import Head from '../components/Head'
const ScrollLink = Scroll.Link
const Element = Scroll.Element
const Events = Scroll.Events
const scroll = Scroll.animateScroll
const scrollSpy = Scroll.scrollSpy
export default class HowItWorks extends Component {
constructor(props) {
super(props)
this.scrollToTop = this.scrollToTop.bind(this)
}
componentDidMount() {
Events.scrollEvent.register('begin', function() {
console.log('begin', arguments)
})
Events.scrollEvent.register('end', function() {
console.log('end', arguments)
})
"use strict";
var React = require('react');
var ReactDOM = require('react-dom');
var Scroll = require('react-scroll');
var Link = Scroll.Link;
var DirectLink = Scroll.DirectLink;
var Element = Scroll.Element;
var Events = Scroll.Events;
var scroll = Scroll.animateScroll;
var scrollSpy = Scroll.scrollSpy;
var durationFn = function (deltaTop) {
return deltaTop;
};
class Section extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<nav>
<ul>
<li>1st element</li></ul></nav></div>