• 둜그인
  • μž₯λ°”κ΅¬λ‹ˆμ— μƒν’ˆμ΄ μ—†μŠ΅λ‹ˆλ‹€.

home2 κ²Œμ‹œνŒ React κ²Œμ‹œνŒ Cannot read properties of null (reading 'useContext')

Cannot read properties of null (reading 'useContext')

6 κΈ€ λ³΄μž„ - 1 μ—μ„œ 6 κΉŒμ§€ (총 6 μ€‘μ—μ„œ)
  • 글쓴이
    κΈ€
  • #80691

    κΉ€μ˜ˆμ€€
    μ°Έκ°€μž
    react part2 μ—μ„œ react-bootstrapμ‚¬μš©ν•˜λŠ” λΆ€λΆ„μ—μ„œ 자꾸 μƒμˆ μ˜ μ—λŸ¬κ°€ λœ¨λ„€μš”. 
    <Button></Button>μ—μ„œ μ—λŸ¬κ°€ λ°œμƒν•˜λŠ” 것 κ°™μŠ΅λ‹ˆλ‹€.
    #80772

    codingapple
    ν‚€ λ§ˆμŠ€ν„°
    μœ„μ— import μž˜ν•΄λ†¨μŠ΅λ‹ˆκΉŒ
    #80784

    κΉ€μ˜ˆμ€€
    μ°Έκ°€μž
    μ½”λ“œ μ „λ¬Έμž…λ‹ˆλ‹€.
    
    import logo from './logo.svg';
    import './App.css';
    import {Button} from 'react-bootstrap';
    import 'bootstrap/dist/css/bootstrap.min.css';
    function App() {
    return (
    <div>
    <Button variant='primary'>Primary</Button>
    </div>
     );
    }
    export default App;
     
    #80786

    codingapple
    ν‚€ λ§ˆμŠ€ν„°
    https://react-bootstrap.github.io/components/buttons/
    μ΄κ±°λŒ€λ‘œ import ν•΄λ΄…μ‹œλ‹€
    #80787

    κΉ€μ˜ˆμ€€
    μ°Έκ°€μž
    import문을 바꿔도 λ¬Έμ œκ°€ ν•΄κ²°λ˜μ§€ μ•Šλ„€μš”. 
    npm start을 λˆ„λ₯Όλ•Œλ§ˆλ‹€ 
    ? Something is already running on port 3000. Probably:
    이런 λ©”μ„Έμ§€κ°€ λœ¨λŠ”λ° ν˜Ήμ‹œ 이 λ¬Έμ œμ™€ 관련이 μžˆμ„κΉŒμš”?
    #80818

    κΉ€μ˜ˆμ€€
    μ°Έκ°€μž
    μ„€μΉ˜κ³Όμ •μ—μ„œ λ¬Έμ œκ°€ μžˆμ—ˆλ˜ 것 κ°™μŠ΅λ‹ˆλ‹€. 
    λ‹€μ‹œ μ§€μš°κ³  μ„€μΉ˜ν•˜λ‹ˆ μ •μƒμ μœΌλ‘œ μž‘λ™ν•˜λ„€μš”.
6 κΈ€ λ³΄μž„ - 1 μ—μ„œ 6 κΉŒμ§€ (총 6 μ€‘μ—μ„œ)
  • 닡변은 둜그인 ν›„ κ°€λŠ₯ν•©λ‹ˆλ‹€.

About

ν˜„μž¬ μ›” 700λͺ… μ‹ κ·œμˆ˜κ°•μ€‘μž…λ‹ˆλ‹€.

  (09:00~20:00) λΉ λ₯Έ 상담은 카톑 ν”ŒλŸ¬μŠ€μΉœκ΅¬ μ½”λ”©μ• ν”Œ (링크)
  admin@codingapple.com
  μ΄μš©μ•½κ΄€, κ°œμΈμ •λ³΄μ²˜λ¦¬λ°©μΉ¨
β“’ Codingapple, κ°•μ˜ 예제, μ˜μƒ 볡제 κΈˆμ§€
top

Β© Codingapple, All rights reserved. μŠˆνΌλ‘œμΌ“ μ—λ“€μΌ€μ΄μ…˜ / μ„œμšΈνŠΉλ³„μ‹œ 강동ꡬ κ³ λ•λ‘œ 19κΈΈ 30 / μ‚¬μ—…μžλ“±λ‘λ²ˆν˜Έ : 212-26-14752 온라인 κ΅μœ‘ν•™μ›μ—… / ν†΅μ‹ νŒλ§€μ—…μ‹ κ³ λ²ˆν˜Έ : 제 2017-μ„œμšΈκ°•λ™-0002 호 / κ°œμΈμ •λ³΄κ΄€λ¦¬μž : λ°•μ’…ν