본문 바로가기

Hello Ocean! 🌼

검색하기
Hello Ocean! 🌼
프로필사진 bba_dda

  • 분류 전체보기 (122)
    • Algorithm (101)
    • Tech (1)
    • Web (8)
    • Book (1)
      • 오브젝트 (1)
    • TIL (7)
    • NestJS (1)
    • Go (3)
      • GO-GraphQL (1)
    • 생각 정리 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
Tags
  • 백엔드 프리온보딩
  • js
  • 슬라이딩 윈도우
  • 프리온보딩
  • 재귀
  • 가장가까운공통조상
  • DFS
  • 비트마스킹
  • 비트맵
  • 프로그래머스
  • 이분탐색
  • 카카오 코테
  • 트리
  • 동적 프로그래밍
  • 백준
  • Union-Find
  • LCs
  • 알고리즘
  • 카카오2021
  • go
  • C++
  • golang
  • nestjs
  • BFS
  • DP
  • 위코드
  • 원티드
  • Python
  • 다익스트라
  • 웹린이
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록nodejs (1)

Hello Ocean! 🌼

[nodejs-react]Server-Client 통신 시 무한 호출 해결

구현하고 싶은 것 :client가 페이지에 접속했을 때, server로부터 데이터 받기 (initial data)  코드:server.js 일부 app.use('/api', (req, res)=> mdbConn.getToDoList() .then((rows) => { console.log("in server.js",rows); res.json({initialTodos:rows}); }) .catch((errMsg) => { console.log(errMsg); })); App.js 일부 (client)function App() { const [state, setState] = useState({ //username: null ..

Web 2021. 3. 1. 14:59
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바