Skip to content

Instantly share code, notes, and snippets.

View Rootjang92's full-sized avatar
๐ŸŽฏ
Focusing

Geunho Jang Rootjang92

๐ŸŽฏ
Focusing
View GitHub Profile
@praveen-me
praveen-me / App.js
Created January 13, 2019 05:08
React code for hooks-todo.
import React, { useState } from 'react';
import './scss/App.scss'
function App() {
const [todoValue, setTodoValue] = useState('');
const [todos, setTodo] = useState([])
const handleChange = e => {
setTodoValue(e.target.value);
}
@LeoHeo
LeoHeo / var-let-const.md
Last active December 15, 2024 01:07
javascript var, let, const ์ฐจ์ด์ 

var, let, const ์ฐจ์ด์ ์€?

  • var๋Š” function-scoped์ด๊ณ , let, const๋Š” block-scoped์ž…๋‹ˆ๋‹ค.

  • function-scoped์™€ block-scoped๊ฐ€ ๋ฌด์Šจ๋ง์ด๋ƒ?

var(function-scoped)

jsfiddle ์ฐธ๊ณ ์ฃผ์†Œ

var path = require('path');
module.exports = {
entry: path.resolve(__dirname, 'src') + '/app/index.js',
output: {
path: path.resolve(__dirname, 'dist') + '/app',
filename: 'bundle.js',
publicPath: '/app/'
},
@ihoneymon
ihoneymon / use-git-and-git-flow.adoc
Last active November 8, 2023 22:45
git ์„ ๊ธฐ๋ฐ˜์œผ๋กœ git-flow๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋ฐฐํฌ๋ฒ„์ „์„ ๊ด€๋ฆฌํ•˜์ž.

GIT์„ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•œ ํ”„๋กœ์ ํŠธ ๊ฐœ๋ฐœํ”„๋กœ์„ธ์Šค

๊นƒ์„ ์‚ฌ์šฉํ•ฉ์‹œ๋‹ค. ๊นƒ์„ ์“ฐ์ž. ๊นƒ์„ ์“ฐ๋ž€ ๋ง์•ผ!!

  • SVN์€ ๋ณ€๊ฒฝ์ด๋ ฅ์ด ๋งŽ์•„์งˆ์ˆ˜๋ก ์†๋„๊ฐ€ ๋А๋ฆฌ์ง€.

    • ์ปค๋ฐ‹ ๋ฐ ์ฒ˜๋ฆฌ์†๋„๊ฐ€ ๋น ๋ฅด๋‹ค. ๋ณ€๊ฒฝ์ด๋ ฅ์ด ๋งŽ์ด ์ถ•์ ๋˜์–ด ์žˆ์–ด๋„ ์†๋„์ €ํ•˜๊ฐ€ ๊ฑฐ์˜ ์—†๋‹ค.

  • ์ปค๋ฐ‹์ฐ๊ธฐ๊ฐ€ ์–ด๋ ต๋‹ค.

@ryanmcgrath
ryanmcgrath / example.js
Last active January 23, 2021 09:42
A basic React Video tag. I wanted to use video.js inside something I was building, so this is more or less a 5-minute tag for handling it. ES6 syntax but you can extrapolate what you need. Handles dynamically loading video.js/css as necessary since I really loathe serving any swf/etc myself. Could be easily extended or made better, works for me โ€ฆ
import React from 'react';
import Video from './Video';
class MyGenericApp extends React.Component {
render() {
return <div>
<Video src="my_video_url" poster="my_poster_url" />
</div>;
}
}