import React, {Component} from 'react'; import Typed from 'typed.js'; import './Header.scss'; class Header extends Component { 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;