react -> es6
node -> Common JS
모듈
1. es6 방식
1) 내보내기
export function hello(){
}
function hello(){
}
export default hello;
2) 불러오기
import hello from './hello.js';
2. Common JS 방식
1) 내보내기 (export)
function hello(){
}
module.exports = hello;
2) 불러오기 (import)
const hello = require('./hello.js')
hello();
http status codes
200 성공
300 redirection
400 client error
500 server error
https://developer.mozilla.org/ko/docs/Web/HTTP/Status
HTTP 상태 코드 - HTTP | MDN
HTTP 응답 상태 코드는 특정 HTTP 요청이 성공적으로 완료되었는지 알려줍니다. 응답은 5개의 그룹으로 나누어집니다: 정보를 제공하는 응답, 성공적인 응답, 리다이렉트, 클라이언트 에러, 그리고
developer.mozilla.org
'개발이 좋아서 > React가 좋아서' 카테고리의 다른 글
react - 복습 (0) | 2022.07.04 |
---|---|
react - 데이터 연동 (0) | 2022.07.01 |
react - 싱글페이지 애플리케이션(복습)(useState, useReducer, useContext) (0) | 2022.06.29 |
react - 중첩라우팅 (0) | 2022.06.28 |
react - API 연동하기(axios) (0) | 2022.06.28 |