“Как использовать React typed js” Ответ

реагировать напечатано JS

yarn add react-typed        #or npm install react-typed --save
Frightened Frog

Как использовать React typed js

import React,{ Component } from 'react';import { render } from 'react-dom';import Typed from 'react-typed'; class MyComponent extends Component {    render() {        return (            <div>                <Typed                    strings={['Here you can find anything']}                    typeSpeed={40}                />                <br/>                 <Typed                strings={[                    'Search for products',                    'Search for categories',                    'Search for brands']}                    typeSpeed={40}                    backSpeed={50}                    attr="placeholder"                    loop >                    <input type="text"/>                </Typed>            </div>        );    }} render(    <MyComponent/>,    document.getElementById('app'),); 
Frightened Frog

Ответы похожие на “Как использовать React typed js”

Вопросы похожие на “Как использовать React typed js”

Больше похожих ответов на “Как использовать React typed js” по JavaScript

Смотреть популярные ответы по языку

Смотреть другие языки программирования