gatsby-starter-hoodie
gatsby-starter-hoodie copied to clipboard
VerticalSpace component Warning: Prop `className` did not match.
page index λ λλ§μ classNameμ΄ λ³κ²½λλ©΄μ μλμ΄ λ°μν©λλ€.
before
import styled from "styled-components"
export default styled.div`
height: ${props => props.size}px;
`
after
import styled from "styled-components"
export const VerticalSpace = styled.div`
height: ${props => props.size}px;
`
VerticleSpace VerticalSpace 2κ° μ»΄ν¬λνΈκ° μλλ° VerticalSpace ν΅μΌνλκ² μ’μ§ μλμ?
μμ μμ² λ립λλ€.
μλ νμΈμ, @Junyong34 λ! μ΄μ λ¨κ²¨μ£Όμ μ κ°μ¬λ립λλ€ π
VerticleSpace
λ μ€νμΈκ²μΌλ‘ νμΈλλ€μ π₯² μμ νλλ‘ νκ² μ΅λλ€.
λν μΊ‘μ³ν΄μ£Όμ className μ΄μλ 곧 ν΄κ²°νλλ‘ νκ² μ΅λλ€. κ°μ¬ν©λλ€!