Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

๐ŸŒŸ Issue: ๋ฆฌ์•กํŠธ ์ด์Šˆ ์ •๋ฆฌ (23-05-16) #27

Open
KKYHH opened this issue May 16, 2023 · 0 comments
Assignees

Comments

@KKYHH
Copy link
Collaborator

KKYHH commented May 16, 2023

โœ…ย HTML ์™€ JSX

์ฝ”๋“œ๋“ค์„ ๊ฐ€์ ธ์˜ค๊ฑฐ๋‚˜ ์ˆ˜์ •ํ•  ๋•Œ HTML ๋ฌธ๋ฒ•๊ณผ JSX ๋ฌธ๋ฒ•์ด ์กฐ๊ธˆ์”ฉ์˜ ์ฐจ์ด๊ฐ€ ์žˆ์–ด์„œ ๊ทธ๋ƒฅ ์“ธ ์ˆ˜ ์—†๊ณ  ์ˆ˜์ •์„ ํ•ด์ค˜์•ผ ํ•œ๋‹ค

์˜ˆ๋ฅผ๋“ค์–ด CSS๋ฅผ ์ ์šฉํ•˜๋ ค๋Š” class๋ฅผ ๊ฐ€์ ธ์˜ฌ ๋• HTML ์—์„  ๋กœ ๊ฐ€๋Šฅํ•˜์ง€๋งŒ JSX๋Š” ์œผ๋กœ ์‚ฌ์šฉํ•œ๋‹ค

 <div class='bar'>
                <div class="logo">Play</div>
                <div class="menu">
                    <ul>
                    <li><Link to="/notice"><a>๊ณต์ง€์‚ฌํ•ญ</a></Link></li>
                        <li><a href="#">PlayGround Q&A</a></li>
                        <li><a href="#">์‹ค์‹œ๊ฐ„ ์ธ๊ธฐ๊ฒŒ์‹œ๋ฌผ</a></li>
                        <li><a href="#">์‚ฌ์ด๋“œ ํ”„๋กœ์ ํŠธ</a></li>
                        <li><a href="#">์ฑ„์šฉ์ •๋ณด</a></li>

  • js ์ ์šฉ X
 <div className='bar'>
                <div className="logo">Play</div>
                <div className="menu">
                    <ul>
                    <li><Link to="/notice"><a>๊ณต์ง€์‚ฌํ•ญ</a></Link></li>
                        <li><a href="#">PlayGround Q&A</a></li>
                        <li><a href="#">์‹ค์‹œ๊ฐ„ ์ธ๊ธฐ๊ฒŒ์‹œ๋ฌผ</a></li>
                        <li><a href="#">์‚ฌ์ด๋“œ ํ”„๋กœ์ ํŠธ</a></li>
                        <li><a href="#">์ฑ„์šฉ์ •๋ณด</a></li>

  • js ์ ์šฉ O

โœ… ํ˜น์—ฌ๋‚˜ .js์—์„œ CSS๊ฐ€ ์ ์šฉ์ด ์•ˆ๋œ๋‹ค๋ฉด ์ธ์ง€ ํ™•์ธ์„ ํ•ด๋ณด์ž


@KKYHH KKYHH self-assigned this May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant