728x90 ๐ฅ๏ธํ๋ก ํธ์๋/React.js8 ๋ฆฌ์กํธ - ์ฐํด๋ฆญ ๋ฉ๋ด ๊ตฌํํ๊ธฐ(context menu) https://blog.logrocket.com/creating-react-context-menu/ Creating a React context menu - LogRocket Blog Explore how to create a React context menu, the shortcuts to activate right-click menus, and how to create a custom context menu Hook. blog.logrocket.com // context menu const [clicked, setClicked] = useState(false); const [points, setPoints] = useState({ x: 0, y: 0 }); const [selectedTr, setSe.. 2023. 10. 13. ๋ฆฌ์กํธ - ์น ์์ผ(ws) ํต์ + useEffect์์ ์น ์์ผ(ws) ์ฌ์ฉ with useRef ws-server.js (์น ์์ผ ์๋ฒ์ธก) const WebSocketServer = require('ws').Server; const wss = new WebSocketServer({ port: 8080 }); wss.on('connection', function connection(ws) { ws.on('message', function message(data) { console.log('received: %s', data); }); ws.send('something'); }); index.js (๋ฆฌ์กํธ) import React, { useState ,useEffect, useRef} from 'react'; const [socketConnted, setSocketConnected] = useStat.. 2022. 11. 7. ๋ฆฌ์กํธ - ์์ฑ ๋๋๊ณ ๋์ ํ ์คํธ ์๋ก ๊ธฐ๋กํ๊ธฐ(react-speech-recognition) ์๋์ฒ๋ผ transcript๋ฅผ ์ถ๋ ฅํ๋ฉด ์ฌํ๊ป ๋งํ๋ ํ ์คํธ๋ค์ ๊ทธ๋๋ก ๊ฐ์ ธ์ค๋ ๊ฒ ์๋๋ผ, ๋ง์ ๋๋ ๋ค์ ๋ค์ ๋ง์ ํ๋ฉด ์ด์ ํ ์คํธ๋ฅผ ์ง์ฐ๊ณ ๋ค์ ๊ธฐ๋กํ๋ ๋ฐฉ์ const [subtitle, setSubtitle] = useState(''); const { transcript, interimTranscript, resetTranscript, browserSupportsSpeechRecognition, finalTranscript, } = useSpeechRecognition(); useEffect( ()=>{ console.log('๋ง์ดํฌ ๋ นํ ์์'); SpeechRecognition.startListening({continuous: true}); }, [] ); useEffect( ()=>{ i.. 2022. 11. 6. ๋ฆฌ์กํธ - ์์ฑ์ ํ ์คํธ๋ก(react-speech-recognition) docs https://github.com/JamesBrill/react-speech-recognition/blob/master/docs/API.md GitHub - JamesBrill/react-speech-recognition: ๐ฌSpeech recognition for your React app ๐ฌSpeech recognition for your React app. Contribute to JamesBrill/react-speech-recognition development by creating an account on GitHub. github.com npm https://www.npmjs.com/package/react-speech-recognition#developing react-speech.. 2022. 11. 4. ๋ฆฌ์กํธ - UI ํ๋ ์์ํฌ(MUI) https://mui.com/ MUI: The React component library you always wanted MUI provides a simple, customizable, and accessible library of React components. Follow your own design system, or start with Material Design. mui.com 2022. 10. 15. ๋ฆฌ์กํธ - ํ ์คํธ ํ์ (React-Toastify) ๋ชจ๋ https://fkhadra.github.io/react-toastify/introduction React-toastify | React-Toastify [](https://opencollective.com/react-toastify)  npx create-react-app [ํ๋ก์ ํธ ์ด๋ฆ] * ํ๋ก์ ํธ๋ฅผ ์ค์นํ ํ cd [ํ๋ก์ ํธ ์ด๋ฆ]์ผ๋ก ๋๋ ํ ๋ฆฌ ์ด๋ ์คํ ๋ช ๋ น์ด) npm start ์ฐธ๊ณ : https://codingapple.com/unit/react1-install-create-react-app-npx/ ๋ฆฌ์กํธ React ์ค์น์ ๊ฐ๋ฐํ๊ฒฝ ์ ํ (2021 ver) - ์ฝ๋ฉ์ ํ ์จ๋ผ์ธ ๊ฐ์ข 0:00 Nodejs, VS Code ์ค์น 3:34 ์์ ํด๋์์ npx create-react-app์ผ๋ก ๋ฆฌ์กํธ ํ๋ก์ ํธ ์์ฑํ๊ธฐ 6:18 ์์ฑ๋ blog๋ผ๋ ํด๋ ์๋ํฐ๋ก ์ด๊ณ ์ฝ๋ฉ์์ํด์ผํ๋๋ฐ ๊ทธ ์ ์ก์ค๋ช 8:29 ๋ด๊ฐ ์ง ์ฝ๋ ์น ๋ฏธ๋ฆฌ๋ณด๊ธฐ codingapple.com 2022. 1. 10. ์ด์ 1 ๋ค์ 728x90