import { h, Component } from 'preact'; import PropTypes from 'prop-types'; import Navigation from './Navigation'; import { updateOnboarding } from '../utilities'; class IntroSlide extends Component { constructor(props) { super(props); this.onSubmit = this.onSubmit.bind(this); } componentDidMount() { updateOnboarding('intro slide'); } onSubmit() { const { next } = this.props; next(); } render() { const { prev } = this.props; return (
DEV

Welcome to DEV!

DEV is where programmers share ideas and help each other grow.

); } } IntroSlide.propTypes = { prev: PropTypes.func.isRequired, next: PropTypes.string.isRequired, }; export default IntroSlide;