import React from 'react'; import Typed from 'typed.js'; const PROJECT_NAME = 'react-bootstrap-table2'; export default class Welcome extends React.Component { componentDidMount() { // type.js config const options = { strings: ['It\'s a bootstrap table rebuilt for React.js '], typeSpeed: 50, backSpeed: 50 }; this.typed = new Typed(this.el, options); } componentWillUnmount() { // Make sure to destroy Typed instance on unmounting to prevent memory leaks this.typed.destroy(); } render() { return (
{

{PROJECT_NAME}

{ this.el = el; } } />
); } }