티스토리 뷰
https://vuejs.org/guide/extras/composition-api-faq.html
Vue.js
Vue.js - The Progressive JavaScript Framework
vuejs.org
공식사이트의 설명
https://joshua1988.github.io/vue-camp/reuse/composition.html
Composition API 🆕 | Cracking Vue.js
컴포지션 API Vue 2Vue 3 컴포지션(Composition API)은 컴포넌트 코드 재사용성을 높여주는 API입니다. Vue 2에서 플러그인 형태로 지원 (opens new window)되다가 Vue 3부터 라이브러리 공식 API로 채택되었습니
joshua1988.github.io
캡틴판교의 설명
option api
export default{
data() {
return{
message : 'hi'
}
},
methods : {
changeMessage() {
this.message = 'hello'
}
}
}
composition Api
export default {
setup() {
const message = ref('Hi'); //data()의 reactivity 로 움직이게 된다.
const chanheMessage = () => {
message.value = 'Hello';
}
return {message, changeMessage}
}
}
'dev > vue3' 카테고리의 다른 글
computed API란? (0) | 2025.01.25 |
---|---|
composition API에서는 왜 setup에서 .value로 접근해야 할까? (0) | 2025.01.25 |
헬퍼 함수 mapState, mapGetters, mapMutations, mapActions (1) | 2025.01.14 |
Vuex - mutations (0) | 2025.01.14 |
ES6 - Enhanced Object Literals - 향상된 객체 리터럴 (0) | 2025.01.10 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- hypertexttransferprotocol
- SpringBoot
- BindingResult
- 스프링부트
- react실행
- 항해플러스
- 리터럴
- reject
- JPA
- jpa api
- 향해플러스백엔드
- 향해플러스
- thymleaf
- Intercepter
- Java
- 로그인
- 예외처리
- exception
- React
- 인터셉터
- 스프링공부
- HTTP
- 컨트
- filter
- rejectValue
- 백엔드 개발자 역량
- ArgumentResolver
- 백엔드 개발자 공부
- 향해99
- 항해99
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
글 보관함