import { API_URL } from "../config";
import { default as $ } from "jquery";
var randomMsg;
const getRandomMsg = () => {
$.ajax({
url: API_URL+'/randmsg',
method: "POST",
contentType: "application/json; charset=utf-8"
}).done(function (data) {
if (! data.msg) {
return;
} else {
randomMsg = data.msg.replace("
", "\n");
$('.random-msg').html(`${randomMsg}`);
}
});
}
export default function RandomMsg() {
getRandomMsg();
return (