Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi I used this react-typewriter good, but How to add another sentence? #26

Open
DDanggle opened this issue Oct 23, 2016 · 1 comment
Open

Comments

@DDanggle
Copy link

DDanggle commented Oct 23, 2016

Version

0.4.1

Steps to reproduce

  1. This sentence list is what I had.
    ['Hello World!',
    'Welcome to react-typewriter!',
    'React is awesome!']
  2. I want to view order by list after erase it.
    this is order of example.

'Hello World!' -> erase 'Hello World!' -> 'Welcome to react-typewriter!' -> erase 'Welcome to react-typewriter!' -> ...

done = () => {

    if (this.state.typing === 1) {
      this.setState({ typing: -1 });
    } else if (this.state.typing === -1) {
      this.setState({ typing: 1 });
    }
  }
<TypeWriter typing={typing}
                     onTypingEnd={this.done}
                     reset={this.typed}
                >

How come do i get to reach it?

@saulocastillos
Copy link

Any guesses?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants