웹 and 앱 프로그래밍
-
리액트의 구조웹 and 앱 프로그래밍 2023. 7. 20. 21:31
리액트에서는 함수로 태그를 커스터마이징 할 수 있다. import React from 'react'; import './Ribbon.css'; const Ribbon = () => { return ( 더 알아보기하고 무료 배송, 스페셜리스트 지원 등의 혜택을 받으세요. ); }; export default Ribbon; 이를 토대로 해당태그의 데이터를 json으로 저장하여 각각 다른 내용을 화면에 보여줄 수 있다.(코드 재사용성 UP!) (예시) https://velog.io/@hye_rin/React-%EC% BB% B4% ED% 8F% AC% EB%84% 8C% ED% 8A% B8-%EC% 9E% AC% EC%82% AC% EC% 9A% A9% ED%95%98% EA% B8% B0 [React] 컴포..
-
리액트란?웹 and 앱 프로그래밍 2023. 7. 5. 13:33
리액트는 처음에 페이스북에서 사용하던 오픈소스 라이브러리로 2015년 6월 공식 발표되었다. 처음에는 모바일 앱 개발에만 적용되었으나 현재는 데스크톱 애플리케이션에서도 활발히 사용되고 있다. 특히 프런트엔드 개발 시 필수적인 요소로 자리 잡으면서 대세로 떠오르고 있다. 그럼 지금부터 본격적으로 리액트의 장점과 단점에 대해 알아보도록 하자. 장점 1 : 빠른 속도 리액트는 컴포넌트 기반의 경량 렌더링 엔진 으로써 매우 빠른 속도를 자랑한다. 따라서 서버 부담이 적고 메모리 사용량도 적어 최적화가 용이하다. 뿐만 아니라 코드 재사용률이 높고 유지보수가 간편하다는 장점도 있다. 장점 2 : 높은 생산성 리액트는 단일 파일 구조 로써 복잡한 JSX 대신 간결한 표현법을 제공한다. 이로 인해 가독성이 좋고 직관적..
-
[Flutter] get and set웹 and 앱 프로그래밍/Flutter 2022. 12. 28. 21:09
Flutter에선 private로 선언 되어있어도(public선언이 없는 class) 같은 파일에만 있다면 값을 공유할수있다. 그러나 같은 파일에 없는 값에 접근할때는 get set을 사용한다. (C++같은 언어에서는 직접 함수를 만들어야하지만 Flutter에서는 간단하게 선언할수있다) int? set Get_Set_Number=> this._Get_Set_Number;//=>은 앞에 함수가 리턴할값(this._Get_Set_Number)을 의미 int? get Get_Set_Number(Value)=> this._Get_Set_Number= Value;//변수값(this._Get_Set_Number) 변경 (this란 클래스 자기자신을 의미)