import React, {Component} from 'react'; import Typed from 'typed.js'; import './Header.scss'; import {Button} from "react-bootstrap"; class Header extends Component { constructor(props) { super(props); this.state = { servicesShow: false }; } componentDidMount() { const options = { strings: ["caronte$ "], typeSpeed: 50, cursorChar: "❚" }; this.typed = new Typed(this.el, options); } componentWillUnmount() { this.typed.destroy(); } render() { return (

{ this.el = el; }} />

) } } export default Header;