ewakwwg12
ewakwwg12

Reputation: 91

How to keep ascii art intact when using it inside React projects

I want to use the following art:

     _.---._    /\\
    ./'       "--`\//
  ./              o \
 /./\  )______   \__ \
./  / /\ \   | \ \  \ \
   / /  \ \  | |\ \  \7
    "     "    "  "        VK

In react I am doing the following:

const x = String.raw`
  _.---._    /\\
  ./'       "--`\//
./              o \
/./\  )______   \__ \
./  / /\ \   | \ \  \ \
 / /  \ \  | |\ \  \7
  "     "    "  "        VK`

I have also tried using the tag but most of those characters are appearing as errors

EDIT: so this does not get deleted I am explicitly mentioning that I am using some different assets from that website, alot of them do not work when you just copy past because they appear as errors in the ide, I am using VSCode. Yes for some I can just copy paste the thing and its fine, for others it does not work

Upvotes: 0

Views: 30

Answers (0)

Related Questions