React.js
-
파일 구조React.js 2021. 9. 19. 01:45
React는 파일을 어떤 식으로 폴더에 분류할 것인지 제시하고 있지 않다. 하지만, 인기 있는 일반적인 파일 구조 접근법들이 존재한다. [ 파일의 기능이나 라우트에 의한 분류 ] css,js,테스트 파일을 하나의 기능이나 라우트로 분류하여 같은 폴더에 두는 방법 기능의 단위는 보편적인 것이 아니다. 얼마나 세분화 하느냐에 따라 다르다. common/ Avatar.js Avatar.css APIUtils.js APIUtils.test.js feed/ index.js Feed.js Feed.css FeedStory.js FeedStory.test.js FeedAPI.js profile/ index.js Profile.js ProfileHeader.js ProfileHeader.css ProfileAPI.js..