This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="messenger"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// USING: | |
// import Messenger from './Messenger' | |
// <Messenger news={['your', 'array', 'with', 'strings', 'here']}/> | |
import React, { Component } from "react"; | |
export default class Messenger extends Component { | |
state = { | |
mainMessage: "", | |
codeletters: "&#*+%?£@§$", |