lab.naminsik
  • Javascript, jQuery
  • Reactjs
  • React Native
  • iOS
  • Android
  • AWS
  • Server
  • Html, CSS
  • Php
  • asp .net
  • SQL
  • Word Press
search
keywords
  • Reactjs 2017‧05‧24

    props가 변경되어서 state를 업데이트(setState) 할 때

    자식 컴포넌트가 부모로 받은 props 의 값들이 변경되었다. 변경됨을 감지하고 자식 컴포넌트안의 state 값을 변경(setState)하여 자식 컴포넌트 안의 함수 실행 또는 변수 정의를 그에 맞게 재실행하고 할 때가 있다. componentDidUpdate(prevProps, prevState){ if (this.props.tagList !== prevProps.tagList) { console.log('업뎃?') this.setState({ ...this.state, selectTagNum : -1 }) } } 이렇게 하면 props.tagList라는 값이 변경이 되었다면 this.state 안에 selectTagNum 은 […]

popular

  • 동영상 스트리밍 서비스 구축 (AWS s3/cloudFront, HLS, video.js)
  • Auto Scaling + codedeploy 배포 오류 - The IAM role arn:aws: does not give you permission to perform operations in the following AWS service: AmazonAutoScaling. Contact your AWS administrator if you need help. If you are an AWS administrator, you can grant permissions to your users or groups by creating IAM policies.
  • SQL Server 에이전트(에이전트 XPs 사용 안 함) 작동 시키기
  • wordpress load-scripts.php 414 request-uri too large
  • 키보드 키 코드
  • jQuery - 특정 속성 가진 엘리먼트 찾고 속성 제거하기
  • Lightsail FTP 서버 구동, vsftpd + filezilla SFTP 연결 아니고 Keyfile 없이 접속
  • E212: Can't open file for writing
  • 최근 글 가져오기
  • 특정 기능을 메인 화면, 포스트 화면(single), 페이지(page)에 따라 다르게 처리하기

comment

  • 감사합니다!
  • 감사합니다~
  • 잘 해결 되셨다니 다행입니다!...
  • 정말 감사합니다. 덕분에 해결했습니다!...
  • 유용한정보 대단히 감사합니다....