일상

테스트입니다. 제목

4분 읽기 조회수 212
테스트입니다. 제목

테스트 글 h1

테스트 글 h2

테스트 글 h3

콜아웃

CALLOUT

목살 : 600g
소금
후추
맛술 : 2숟가락
전분가루 : 5숟가락
찹쌀가루 : 1숟가락
마늘
물 : 3숟가락
물엿 : 180ml (종이컵 기준 1컵)
케찹 : 5숟가락
다진마늘 : 2숟가락
고추장 : 3숟가락
진간장 : 2숟가락
양파 : 40g
파채

강아지 Caption
강아지 Caption

강아지 링크

sync 준비

텍스트 효과 strike

텍스트 밑줄

텍스트 볼드

텍스트 이탤

안녕하세요. 빨간색 글자 빨간색 글자

파란색 글자

파란색 글자

빨간색 배경

파란색 배경

How to Use TypeScript with React

To use TypeScript with React, you first need to install the necessary dependencies. You can do this by running the following command in your terminal:

코드 블럭

npm install --save-dev typescript @types/react @types/react-dom

코드 블럭

interface Props {
  name: string;
}

interface State {
  age: number;
}

class MyComponent extends React.Component<Props, State> {
  render() {
    return (
      <div>
        <p>Name: {this.props.name}</p>
        <p>Age: {this.state.age}</p>
      </div>
    );
  }
}

In this example, we have defined interfaces for the Props and State of the MyComponent class. This ensures that the component receives a name prop of type string and has a state property with an age of type number.

QUOTE

Divider


다단구조


  • UnorderdList1
  • ㅁ고록2
  • 목록3
  1. 번호 목록1
  2. 번호 목록2
  3. 번호 목록3
컬럼1(헤더)
컬럼2(헤더)
내용1
내용2
컬럼1(헤더)
컬럼2(헤더)
내용1
내용2

댓글

아직 댓글이 없습니다. 첫 번째 댓글을 작성해보세요!

관련 포스트