티스토리 뷰

 

router를 이용하거나 (쓰면 될 것 같음)

1) https://www.techomoro.com/how-to-create-a-multi-page-website-with-react-in-5-minutes/

 

How to Create a Multi-page Website with React in 5 Minutes ← Techomoro

In this article, we will discuss the steps for creating a multi-page website using React in 5 minutes or less.

www.techomoro.com

2) https://isotropic.co/react-multiple-pages/

 

How To Add Multiple Pages in React (2022 Tutorial) - Isotropic

In this article, we're going to discuss how to make a multi page website (or app) in React. This is a relatively simple concept, and can be done in about five minutes. Once you understand how to do it, you'll be able to continually add pages to your projec

isotropic.co

3) https://stackoverflow.com/questions/53794276/how-to-navigate-to-a-new-page-in-react

 

How to navigate to a new page in react?

I started to create my own React app so I could learn better. I want to click on and it will bring me to the About.js render. About.js is an entirely new page and new design. Sort of like in HTML.

stackoverflow.com

 

갈아끼운 다음에 og를 써 보?거나 (될지는 모르겠음) 

https://medium.com/swlh/create-a-web-page-using-react-d5ad9d03fb1f

 

Create a Web Page Using React

In this article, we’ll create a simple web page using React library, which will display the information about few famous places of India.

medium.com

 

궁금한 점: 
ROUTER를 쓴다면 페이지가 많이 생성되는 웹의 경우 그 많은 jsx를 다 만든단 말인가? 
예를 들면 페이지별로 공유 링크가 생성되는 브런치, 블로그, 트위터 등의 사이트들이 그떄마다 페이지를 생성하지는 않을 것 같은데... 너무 많아지니까. 

검색어: how to change url without reloading page

검색 결과: 

https://attacomsian.com/blog/javascript-update-url-without-page-reload

https://stackoverflow.com/questions/824349/how-do-i-modify-the-url-without-reloading-the-page

pushState() method/replaceState() method 를 사용한다.

 

 

 

How do I modify the URL without reloading the page?

Is there a way I can modify the URL of the current page without reloading the page? I would like to access the portion before the # hash if possible. I only need to change the portion after the dom...

stackoverflow.com

https://kipid.tistory.com/entry/Change-browser-URL-without-reloading-a-page

window.location

 

또 궁금한 점: jsx 파일 여러 개를 생성해서 하는 방법과 pushstate를 사용하는 방법이 있다면, 둘 중 어느 쪽이 더 유리한가? 상황따라 다르다면 어떤 요인을 고려해야 하나? 

 

'STUDY > WEB' 카테고리의 다른 글

생활코딩 React 강의 복습  (0) 2022.06.03
오픈 그래프 (Open Graph)  (0) 2022.05.24
React: 새 페이지 만들기  (0) 2022.05.22
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
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 31
글 보관함