applied barreling

This commit is contained in:
Kim, Jimin 2022-04-17 10:52:44 +09:00
parent 69c3e7d5ab
commit d91b524dbd
9 changed files with 14 additions and 2 deletions

View file

@ -29,7 +29,7 @@ const StyledPostList = styled.div`
})}; })};
` `
const PostList = () => { const Home = () => {
const { globalState } = useContext(globalContext) const { globalState } = useContext(globalContext)
const [howMany, setHowMany] = useState(5) const [howMany, setHowMany] = useState(5)
const [postsLength, setPostsLength] = useState(0) const [postsLength, setPostsLength] = useState(0)
@ -90,4 +90,4 @@ const PostList = () => {
) )
} }
export default PostList export default Home

3
src/pages/Home/index.ts Normal file
View file

@ -0,0 +1,3 @@
import Home from "./Home"
export default Home

3
src/pages/Page/index.ts Normal file
View file

@ -0,0 +1,3 @@
import Page from "./Page"
export default Page

View file

@ -0,0 +1,3 @@
import Portfolio from "./Portfolio"
export default Portfolio

View file

@ -0,0 +1,3 @@
import Search from "./Search"
export default Search