-
Notifications
You must be signed in to change notification settings - Fork 124
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
React 18 support #124
Comments
Looks like each character at index-i is being written more than once |
Seeing the same on react 18.0.0-alpha-cae635054-20210626 |
it seems work in me |
Hi @NawarA. Did you find any way to fix it? |
Was anyone able to make this work? |
No, I didnt fix it. I was forced to use a different library |
Can you share which one did you use for React 18? Thanks! |
|
I really like the way react-typist creates the typing animation, but it seems that this package is no longer updated. As a result, I create a new package and try to reproduce the functionality of react-typist. If you haven't find an alternative package, maybe you can give it a try. Here is the package: https://www.npmjs.com/package/react-typist-component |
Works like a breeze with React 18 and MUI, thank you! |
Amazing |
Remove StrictMode works fine for me |
Yup, strangely this solved the issue for me as well 🤔 |
I get this warning message when running without strict mode
|
Still encountering the same error, and after trying several libraries, I'm now using // 'react-typist' code
import Typist from 'react-typist';
import 'react-typist/dist/Typist.css';
.
.
const SomeComponent = () => {
.
.
return (
<div>
I am
<div >
<Typist className="inline" startDelay={1000}>
sleepy
<Typist.Backspace count={7} delay={1000} />
hungry
<Typist.Backspace count={7} delay={1000} />
happy
</Typist>
</div>
</div>
);
}
export default SomeComponent; // 'react-simple-typewriter' code
import { useTypewriter, Cursor } from "react-simple-typewriter";
.
.
const [text] = useTypewriter({
words: ['sleepy', 'hungry', 'happy'],
})
<div>
I am
<div>
{text}
<Cursor cursorColor='red' />
</div>
</div> |
Hey guys, seems the library acts crazy in React 18, spewing non-sense:
React 18.0.0:
React 17.0.2:
I saw in another issue someone mentioned animations may screw up in React 18, but I'm flagging the whole library doesnt work in React 18. How easy is this to patch?
The text was updated successfully, but these errors were encountered: