Комментарии:
How to get the images properly, without importing it individually
And how to get absolute path of any file
I recommend eslint-plugin-project-structure for validating folder structure and file naming/file extension
ОтветитьWhat do you use instead of Redux then?
ОтветитьPersonally I find it confusing to have multiple index.tsx files open and being unable to tell at a glance which components they are associated with. I do see how it gives the code a nice clean feel, though.
Ответитьthanks bro
Ответитьlove the structure! can you please share the github repo name?
ОтветитьPedro, onde está seu linkedin? está retornando erro na pagina pelo link na descrição
Ответитьdo big companies like facebook use this pattern and what am i supposed to do with react routing?
ОтветитьMy rule of thumb is the longer and more descriptive the file name, the better. For files that export React components, I use PascalCase. For everything else, I use dash-case.
ОтветитьNot it
Ответитьgreat
ОтветитьThankyou..
Ответить@PedroTech, u said ur not using redux that much anymore, so what are u using as a state management solution?
ОтветитьThanks for the video.. Didn't find the link to the repository on github though, also checked on github, haven't seen it, maybe it has a different name?
ОтветитьThanks for the tips. The naming of files is always controversial, but organization is the most critical aspect. Insufficient naming and bad folder organization can be painful for the next developer working on a project... I learned that I had to rename and split the code into different files and folders in Angular. I will try this way, as I am just getting started on React.
Ответитьthis was really the best Structure i have seen , could you please share it with us on gitub
Ответитьpls provide this project github repo.
ОтветитьWhere would you like to put layout inside setup folder or common folder ?
ОтветитьSuch a nice video, thanks for sharing.
ОтветитьHi PedroTech, I want to thank you for sharing this content to us. I'm wondering what's inside the common folder. You skipped it and you never went back on it.
ОтветитьHi from Sweden 🇸🇪 😊 Love your videos and how you think in react, thanks for sharing!
ОтветитьNice tutorial Pedro, I really liked it. I was just wondering if checking git/diff results involving component files, wouldn't be a bit harder in some situations or another as they are all named as 'index'. Anyway, thanks for sharing your knowledge man
Ответить@PedroTech you missed the common folder, haven’t you?
Ответитьgreat ! which font you are using it's look pretty kindly let me know also with theme name.
ОтветитьCan we get the git hub location for a sample project with this directory structure , redux & graphql?
ОтветитьThat is definitely not a folder structure for large projects. Maybe for medium ones
ОтветитьI appreciate you making this video, as folder structure, granted, has caused me to pull my hair as our app is scaling. However, I do want to point out that there are some hooks that can be used globally and shouldn't be grouped under a specific page, is it ideal to create a "hooks" folder in the "src" parent folder?
ОтветитьI can't joint your discord channel via the above link ,can u please resend me the lastest link
Ответитьyeah i prefer the absolute path in importing.And i notice u did not mention about reusable components like buttons,breadcrump,loader etc .For i do have a customised folder for reusable components
Ответитьi dont see an index.ts at your pages level. How do you combine these components inside your pages
ОтветитьSo, for each page you have a <<components>> folder. Where do you put your layout component like <Footer.ts>? What about a button component that is gonna be used in different pages? You duplicate them everywhere?
Ответитьwont the test failure stack trace say index.test.ts and be confusing?
Ответитьcould you recommend some great extensions, for instance the way your files/folders have great icons. I cam from webstorm and looking for similar functionality
Ответитьthank you for your video. I'm always enjoying your video
and I have a question what's "common" folders for? and also models.ts in component folder?
shit... I love you. you always give me what I want
ОтветитьIsn't having one folder called "images" and one "svg" pretty ugly? Why not "png", "jpg", "svg" or "raster-images" and "vector-images". Or do you also have svg files in the images folder?
ОтветитьI don't understand what you do when the path to the file is "../../". Do you use jsConfig to put the path? please answer me
Ответитьwhere is your index.tsx for each page
ОтветитьWhat you using to mange state instead of Redux?
ОтветитьYou said that you don’t use redux that much today. What state manager do you use?
ОтветитьWhat if there is a component which shared by different pages in the app ?
ОтветитьGL
ОтветитьWow, great video! I always find myself lost when having to setup a new project the correct way and I've watched many of your older folder structure videos in the past. Though, as my project scales it always gets messy but this is an awesome approach of doing it right from the start. Thanks for your updated video, love your content! keep it up!
ОтветитьThanks a lot Pedro ! What do you put in the common folder ?
ОтветитьI would like a video on state management of react. What to use for enterprise grade applications? Thanks.
I am familiar with Angular and just can't get head over the mess of a framework react is.
Just use next js, it is structured
ОтветитьHow do you do if you have posts and comments on the same page?
Ответить