openreplay/frontend/app/dev/components/PromiseErrorButton.js
Андрей Бабушкин b822b1c067 applied eslint
2025-02-26 20:31:01 +01:00

16 lines
317 B
JavaScript

import React from 'react';
function fetchWrong() {
return fetch('/lalka_sasai').then((resp) => resp.json());
}
export default function PromiseErrorButton() {
return (
<button
onClick={fetchWrong}
style={{ background: 'purple', color: 'white' }}
>
Zatrollit' lalku
</button>
);
}