반응형

2024.08.18 현황

 

 

 

 

 

 

2024.08.19 현황

 

 

하루동안 150개 정도 별점리뷰만 눌렀음

 

175점에서 252점으로 77점 오름

랭킹은 그대로. 점수도 언제 어떻게 오르는지 모르겠음

별점리뷰 누르다 보니 갑자기 올라있었는데 한참 더 눌러도 안오름

 

 

+검색결과

일요일 마다 업데이트 된다고 함

상품개수보다 '도움이 돼요'을 받아야된다고함

 

 

2024.08.23 현황

 

틈틈이 밀린 별점 리뷰를 누른 결과 252점에서 411점으로 159점 오름

인터넷 검색해보니 리뷰 개수를 많이 하는 것보다 사진과 리뷰 글을 길게 적어야 금방 점수가 오른다고 함

시간 날 때 만만한 품목으로 도전해봄

반응형
반응형

리액트 공식 홈페이지로 리액트 배우기

 

1. 공식 홈페이지

https://react.dev/

 

React

React is the library for web and native user interfaces. Build user interfaces out of individual pieces called components written in JavaScript. React is designed to let you seamlessly combine components written by independent people, teams, and organizati

react.dev

 

리액트란?

웹과 네이티브 유저 인터페이스를 위한 라이브러리

React - The library for web and native user interfaces

 

 

 

 

2. Learn React

https://react.dev/learn

 

Quick Start – React

The library for web and native user interfaces

react.dev

 

Quick Start

Welcome to the React documentation!

This page will give you an introduction to the 80% of React concepts that you will use on a daily basis.

 

You will learn

  • How to create and nest *components // *component - component is a piece of the UI (user interface) that has its own logic and appearance. A component can be as small as a button, or as large as an entire page.
  • How to add markup and styles
  • How to display data
  • How to *render conditions and lists //*render : (어떤 상태가 되게) 만들다[하다] (=make)
  • How to respond to events and update the screen
  • How to share data between components

 

Creating and nesting components 

 

React apps are made out of components. A component is a piece of the UI (user interface) that has its own logic and appearance. A component can be as small as a button, or as large as an entire page.

React components are JavaScript functions that return markup:

 

-----

function MyButton() {

return (
<button>I'm a button</button>
);

 

}

-----

*MyButton 이라는 function을 만든 것이다.

이를 다른 component에 중첩 가능하다.

 

 

Now that you’ve declared MyButton, you can nest it into another component:

-----

export default function MyApp() {
return (
<div>
<h1>Welcome to my app</h1>
<MyButton />
</div>
);
}
-----

 

Notice that <MyButton /> starts with a capital letter. That’s how you know it’s a React component.

React component names must always start with a capital letter, while HTML tags must be lowercase.

 

 

Have a look at the result:

 

function MyButton() {
  return (
    <button>
      I'm a button
    </button>
  );
}

export default function MyApp() {
  return (
    <div>
      <h1>Welcome to my app</h1>
      <MyButton />
    </div>
  );
}

 

The export default keywords specify the main component in the file. If you’re not familiar with some piece of JavaScript syntax, MDN and javascript.info have great references.

 

 

 

Writing markup with *JSX 

*jsx = JavaScript XML

React에서 HTML을 표현할 때, JSX를 사용한다. 외관상 HTML같은 마크업 언어를 리터럴로 입력하는 것으로 보이는데, 빌드 시 Babel에 의해 자바스크립트로 변환된다. 자바스크립트 코드를 HTML처럼 표현할 수 있기 때문에 용이한 개발이 가능하다.

HTML과 매우 흡사하긴 하지만, XML을 기반으로 한데다 Javascript 내부에서 사용하다보니 불가피하게 생긴 차이점이 몇가지 있다.
  • HTML요소에 class값을 정의할 때, 원래 HTML에서는 <p class="container"></p>과 같이 하면 되었지만, class라는 단어가 ECMAScript6의 클래스 문법과 겹치는 예약어이기 때문에 대신에 className이라는 단어를 사용한다.
  • 마찬가지 이유로 루프문 예약어와 겹치는 for은 htmlFor로 사용한다.
  • 또한 요소에서 이벤트를 핸들링하는 onclick 등의 단어들은 onClick처럼 카멜표기법으로 표기해야 한다.
  • 기존의 HTML에서 주석은 <!-- COMMENT -->이렇게 했었지만 JSX에서는 {/*주석*/} 으로 표현한다.
  • HTML Custom-Element는 <my-element>와 같이 표기했지만 React의 Custom Element는 <MyElement />와 같이 Pascal Case로 표기한다. 닫는 태그에는 꼭 명시적으로 /> 표기를 해준다. [1]
  • JSX 내부에서도 JS를 사용할 수 있다. {}로 불러온다. {console.log(this.props)} 같은 식이다.[2]

이 JSX 위주의 프론트엔드 라이브러리로는 Preact, SolidJS, Inferno 등이 있으며, Vue.js 등의 자체적인 포멧을 사용하거나 Svelte 같이 JSX 사용과 거리가 먼 라이브러리 및 프레임워크 또한 JSX를 사용할 수 있는 방법이 존재한다.

어도비 Photoshop, After Effects등의 프로그램에서 쓰이는 스크립트의 확장자명도 jsx이지만 이 jsx와는 자바스크립트라는 것 이외의 관련이 없다.

 

 

The markup syntax you’ve seen above is called JSX. It is optional, but most React projects use JSX for its convenience. All of the tools we recommend for local development support JSX out of the box.

JSX is stricter than HTML. You have to close tags like <br />. Your component also can’t return multiple JSX tags. You have to wrap them into a shared parent, like a <div>...</div> or an empty <>...</> wrapper:

 

Function AboutPage() {
return (
<>
<h1>About</h1>
<p>Hello there.<br />How do you do?</p>
</>
);
}

 

 

If you have a lot of HTML to port to JSX, you can use an online converter.

 

HTML to JSX

to TypeScript Declaration to TypeScript Declaration

transform.tools

 

Adding styles 

In React, you specify a CSS class with className. It works the same way as the HTML class attribute:

<img className="avatar" />

 

Then you write the CSS rules for it in a separate CSS file:

/* In your CSS */
.avatar {
border-radius: 50%;
}

React does not prescribe how you add CSS files. In the simplest case, you’ll add a <link> tag to your HTML. If you use a build tool or a framework, consult its documentation to learn how to add a CSS file to your project.

반응형

'컴퓨터 관련 > 리액트' 카테고리의 다른 글

W3S/React Getting Started  (1) 2024.10.15
W3S/리액트  (1) 2024.10.15
React-The library for web and native user interfaces  (0) 2024.08.06
웹팩/바벨  (0) 2024.08.01
Critical Rendering Path(CRP)  (0) 2024.08.01
반응형

 들 야 

  오랑캐 만

반응형
반응형

https://ko.legacy.reactjs.org/

 

React – 사용자 인터페이스를 만들기 위한 JavaScript 라이브러리

A JavaScript library for building user interfaces

ko.legacy.reactjs.org

 

 

Quick Start

Welcome to the React documentation! This page will give you an introduction to the 80% of React concepts that you will use on a daily basis.

 

You will learn

  • How to create and nest components
  • How to add markup and styles
  • How to display data
  • How to render conditions and lists
  • How to respond to events and update the screen
  • How to share data between components

 

Creating and nesting *components 

* A component is a piece of the UI (user interface) that has its own logic and appearance

 

React apps are made out of components. A component is a piece of the UI (user interface) that has its own logic and appearance. A component can be as small as a button, or as large as an entire page.

React components are JavaScript functions that return markup:

 

------

 

function MyButton() {
return (
<button>I'm a button</button>
);
}
------

Now that you’ve declared MyButton, you can nest it into another component:

export default function MyApp() {
return (
<div>
<h1>Welcome to my app</h1>
<MyButton />
</div>
);
}
반응형

'컴퓨터 관련 > 리액트' 카테고리의 다른 글

W3S/리액트  (1) 2024.10.15
리액트 배우기 - 공식 홈페이지  (1) 2024.08.06
웹팩/바벨  (0) 2024.08.01
Critical Rendering Path(CRP)  (0) 2024.08.01
리액트 개발환경 세팅  (1) 2024.07.21
반응형

if문

 

조건을 판단 후 그 상황에 맞게 처리

 

if문의 기본 구조

if 조건문

     수행할 문장1

 

else

     수행할 문장 A

 

* if조건문:

if문에 속하는 모든 문장에는 들여쓰기(indentation)를 해주어야 한다.

 

 

*비교연산자

 

X<Y - X가 Y보다 작다

X>Y - X가 Y보다 크다

X==Y - X와 Y가 같다

X!=Y - X와 Y가 같지 않다

X>=Y  - X가 Y보다 크거나 같다

X=<Y - X가 Y보다 작거나 같다

 

 

 

 

 

반응형

'컴퓨터 관련 > 파이썬' 카테고리의 다른 글

파이썬/리스트 안에 숫자 2배로 만들기  (1) 2024.10.31
파이썬/사칙연산  (0) 2024.10.30
문자열 연산하기  (1) 2024.08.03
문자열 자료형  (0) 2024.07.23
파이썬 자료형  (0) 2024.07.23
반응형

1. Concatenation (연속)

head = "Python"

tail = " is fun!"

head+tail

'Python is fun!'

 

2. 문자열 곱하기

a = "Python"

a*2

'PythonPython'

반응형

'컴퓨터 관련 > 파이썬' 카테고리의 다른 글

파이썬/사칙연산  (0) 2024.10.30
제어문  (1) 2024.08.04
문자열 자료형  (0) 2024.07.23
파이썬 자료형  (0) 2024.07.23
파이썬 다운로드  (0) 2024.07.22
반응형

웹팩은 오픈 소스 자바스크립트 모듈 번들러로써 여러개로 나누어져 있는 파일들을 하나의 자바스크립트 코드로 압축하고 최적하는 라이브러리입니다.

 

웹팩의 장점

1. 여러 파일의 자바스크립트 코드를 압축하여 최적화 할 수 있기 때문에 로딩에 대한 네트워크 비용을 줄일 수 있습니다.

2. 모듈 단위로 개발이 가능하여, 가독성과 유지보수가 쉽습니다.

 

 

바벨은 최신 자바스크립트 문법을 지원하지 않는 브라우저들을 위해서 최신 자바스크립트 문법을 구형 브러우저에서도 돌수 있게 변환 시켜주는 라이브러리

 

반응형

'컴퓨터 관련 > 리액트' 카테고리의 다른 글

리액트 배우기 - 공식 홈페이지  (1) 2024.08.06
React-The library for web and native user interfaces  (0) 2024.08.06
Critical Rendering Path(CRP)  (0) 2024.08.01
리액트 개발환경 세팅  (1) 2024.07.21
JSX  (0) 2024.07.16
반응형

웹 페이지 빌딩 과정

 

Critical Rendering Path

Optimizing the critical rendering path refers to prioritizing the display of content that relates to the current user action.

Delivering a fast web experience requires a lot of work by the browser. Most of this work is hidden from us as web developers: we write the markup, and a nice looking page comes out on the screen. But how exactly does the browser go from consuming our HTML, CSS, and JavaScript to rendered pixels on the screen?

Optimizing for performance is all about understanding what happens in these intermediate steps between receiving the HTML, CSS, and JavaScript bytes and the required processing to turn them into rendered pixels - that's the critical rendering path.

By optimizing the critical rendering path we can significantly improve the time to first render of our pages. Further, understanding the critical rendering path also serves as a foundation for building well-performing interactive applications. The interactive updates process is the same, just done in a continuous loop and ideally at 60 frames per second! But first, an overview of how the browser displays a simple page.

반응형

'컴퓨터 관련 > 리액트' 카테고리의 다른 글

React-The library for web and native user interfaces  (0) 2024.08.06
웹팩/바벨  (0) 2024.08.01
리액트 개발환경 세팅  (1) 2024.07.21
JSX  (0) 2024.07.16
React(라이브러리)  (0) 2024.07.12
반응형

pro·di·gious

미국∙영국 [ prəˈdɪdʒəs ]
미국식 [ prəˈdɪdʒəs ]
형용사
1. 격식 [주로 명사 앞에 씀]
(놀라움·감탄을 자아낼 정도로) 엄청난[굉장한]
 
 

 

He had a prodigious appetite for both women and drink.

 

파) prodigy 놀라운 일, 기이한 현상

 

 

vol·ition

미국∙영국 [ və|lɪʃn ]
미국식 [ voʊ|lɪʃn ]
명사
  • 1. U 격식
    자유 의지

    They left entirely of their own volition. 

    그들은 전적으로 자신들의 자유 의지로[그들 자신이 원해서] 떠났다.

Little did i dream that he would apply to our company of his own volition.

 

반응형
반응형

보기-> 틀고정

 

반응형

+ Recent posts