더 많은 포스팅 보기 자세히보기

프론트엔드 37

[프로그래머스] 해시 > 완주하지 못한 선수

완주하지 못한 선수 출처: https://programmers.co.kr/learn/challenges 문제 설명 수많은 마라톤 선수들이 마라톤에 참여하였습니다. 단 한 명의 선수를 제외하고는 모든 선수가 마라톤을 완주하였습니다. 마라톤에 참여한 선수들의 이름이 담긴 배열 participant와 완주한 선수들의 이름이 담긴 배열 completion이 주어질 때, 완주하지 못한 선수의 이름을 return 하도록 solution 함수를 작성해주세요. 제한사항 마라톤 경기에 참여한 선수의 수는 1명 이상 100,000명 이하입니다. completion의 길이는 participant의 길이보다 1 작습니다. 참가자의 이름은 1개 이상 20개 이하의 알파벳 소문자로 이루어져 있습니다. 참가자 중에는 동명이인이 있..

Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider 문제 해결

React Native개발을 하다가 한 이슈가 발생하였다. Invariant Violation: Tried to register two views with the same name RNCSafeAreaProvider 한참을 헤맸고, 깃허브에서 package.json "scripts": { "postinstall": "rm -rf node_modules/expo/node_modules/react-native-safe-area-context" } 이 스크립트를 추가하여 실행하면 문제를 해결할 수 있었다.

React Native Version Mismatch 문제 해결

React Native개발을 하다가 패키지를 업데이트 했는데, console.error: React Native version mismatch. JavaScript version: 0.62.2 Native version: 0.63.2 Make sure that you have rebuilt the native code. If the problem persists try clearing the Watchman and packager caches with `watchman watch-del-all && react-native start --reset-cache`. construct [native code]:0 _construct construct.js:19:9 Wrapper wrapNativeSuper.js..

TypeScript - Install

1. 설치방법 Node.js를 설치하면 npm도 같이 설치된다. $ npm install -g typescript 2. 사용방법 TypeScript의 기본 확장자는 .ts이다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 // person.ts class Person { private name: string; constructor(name: string) { this.name = name; } sayHello() { return "Hello, " + this.name; } } const person = new Person('Lee'); console.log(person.sayHello()); tsc 명령어 뒤에 트랜스파일링 대상 파일명을 지정한다. 이때 확장자 .ts는 생략할 수..

반응형