Error48 React Hook "useState" is called in function "useillust_customer" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use" rea.. [React] const [numbers, setMessageNumbers] = useState(""); 를 사용하는 function은 use가 가장 앞에 있고 카멜 형식이어야 하나보다. 예시. function useIllust_customer() { 2022. 4. 15. Spring boot JSON Gradle [Spring boot] implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1' 난 이거 빌드가 안된다. implementation 'org.json:json:20190722' implementation 'com.googlecode.json-simple:json-simple:1.1.1' 이렇게 하니까 된다. 2022. 4. 15. Uncaught SyntaxError: Unexpected token < in JSON at position 0 [React] const config = { headers : { 'Accept' : 'application/json' } } fetch(`http://localhost:8086/piece?piece=${piece}`, config) .then((res) => res.text()) .then((data) => { console.log(data) numbers = data.split(',') }) fetch 결과가 String일 경우, res.json()이 아니라 res.text()로 처리해야한다. 2022. 4. 14. 하둡 결과 파일 로컬로 가져오기 [Hadoop] hdfs dfs -copyToLocal /test/output/part-r-00000 /home/ubuntu 2022. 4. 12. 이전 1 2 3 4 5 6 7 8 ··· 12 다음