jstejada / react-typist

Typing animations with React
https://jstejada.github.io/react-typist/
Other
1.4k stars 124 forks source link

Typis element doesnt get the defaultvalue of textarea #64

Open maxclav opened 6 years ago

maxclav commented 6 years ago

Hi, i'm new to web dev, How can i correct this error: I want Typist components to get the defaultvalue of the textarea

import React from 'react';
import './index.css';
import Typist from 'react-typist'; // https://github.com/jstejada/react-typist

//! WITH WARNINGS, ERRORS AND TYPIST
class Message extends React.PureComponent {
  render() {
    const dearMessage = "Dear Maxime, ";
    return (
      <div className="contact-message">
        <Typist>
          <textarea id="contact-textarea" name="message" spellCheck="false">
            {dearMessage}
          </textarea>
        </Typist>
      </div>
    );
  }
}
export default Message

index.js:1452 Warning: Use the defaultValue or value props instead of setting children on