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
fetch('ваш_url', { | |
method: 'GET', | |
headers: { | |
'Content-Type': 'application/json', | |
'Authorization': 'Bearer ваш_токен' | |
} | |
}) | |
.then(response => { | |
if (!response.ok) { | |
throw new Error(`Ошибка сети: ${response.status} ${response.statusText}`); |
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
doctype html | |
html(lang="en") | |
head | |
meta(charset="UTF-8") | |
meta(name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no") | |
title Document | |
link(rel="stylesheet", href="css/style.css") | |
body | |
header.header | |
.container |
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
.bg-fixed { | |
width: 100%; | |
height: 100vh; | |
background: #333 url('img/mountains.jpg'); | |
background-repeat: no-repeat; | |
background-position: center center; | |
background-size: cover; | |
background-attachment: fixed; | |
overflow: hidden; | |
} |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" | |
integrity="sha512-NhSC1YmyruXifcj/KFRWoC561YpHpc5Jtzgvbuzx5VozKpWvQ+4nXhPdFgmx8xqexRcpAglTj9sIBWINXa8x5w==" |
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
import React, { Component } from 'react' | |
export default class Clicker extends Component { | |
// constructor(props) { | |
// super(props) | |
// this.state = { | |
// count: 0 | |
// } | |
// } | |
state = { |
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
import React, { Component } from 'react'; | |
import './item.css' | |
export default class PostItem extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { important: false, like: false, }; | |
this.onImportant = this.onImportant.bind(this); | |
this.onLike = this.onLike.bind(this); |
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
import React from 'react'; | |
import ReactDOM from 'react-dom/client'; | |
import './index.css'; | |
import App from './components/app/App'; | |
const root = ReactDOM.createRoot(document.getElementById('root')); | |
root.render( | |
<React.StrictMode> | |
<App /> |
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
// rcc | |
import React, { Component } from 'react' | |
export default class react__1 extends Component { | |
render() { | |
return ( | |
<div>react__1</div> | |
) | |
} | |
} | |
// rce |
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
|
NewerOlder