Alt Text

doYoda() {
    let doOr = (10 * Math.random()).toFixed(0),
      doNot = (10 * Math.random()) % 2 > 1,
      thereIsNoTry = [
        "Do or do not. There is no try.",
        "You must unlearn what you have learned.",
        "Named must be your fear before banish it you can.",
        "Fear is the path to the dark side.",
        "That is why you fail.",
        "The greatest teacher, failure is.",
        "Pass on what you have learned.",
        "Now I know there is something strong than fear — far stronger.",
        "Don't underestimate the Force.",
        "For my ally is the Force, and a powerful ally it is."
      ];

    if(doNot) {
      this.strings.push({
        name: "yoda",
        time: "NOW",
        text: [thereIsNoTry[doOr]]
      });
      this.forceUpdate(() => {
        /* spaghetti && meatballs */
      });
    }
  }

Fun little script i use instead of lorem... maybe a fun npm module if someone wants to own it.

:)

If you found this helpful or useful, please share a 💓, 🦄, or 🔖. Thanks!

This post is also available on DEV.