Giter Site home page Giter Site logo

Agree File Structure about curenetics HOT 5 CLOSED

yalla-coop avatar yalla-coop commented on September 27, 2024
Agree File Structure

from curenetics.

Comments (5)

martinbagshaw avatar martinbagshaw commented on September 27, 2024

One thing that we do at my work is name react components as .jsx files in PascalCase, which makes it easy to differentiate between these and helper functions at a glance.

Should assets (images etc) be in the public folder? What would reside there?

I was also wondering what the 'constants' folder would contain?

from curenetics.

wright1 avatar wright1 commented on September 27, 2024

That file structure makes sense to me. If we use create-react-app (CRA) the file structure can be easily customised.
@mr-bagglesworth No, assets shouldn't be in the public folder, webpack doesn't read the public folder hence public folder isn't compiled in CRA (althought if pre-fixed with '%PULIC_URL%' assets will be compiled, bad pratice!) . I'm not sure why the favicon is always kept there.

from curenetics.

martinbagshaw avatar martinbagshaw commented on September 27, 2024

@wright1 cool, guess I've been working on collossal apps where everything gets auto uploaded to a CDN for too long now!

from curenetics.

MohammedYehia avatar MohammedYehia commented on September 27, 2024

we should put every page in its own folder inside the Pages folder

|     ├── Pages
|     |     ├──WelcomePage
|     |     |     ├──index.js
|     |     |     ├── style.css

@mr-bagglesworth constants folder is for Route names and other constant urls

from curenetics.

wright1 avatar wright1 commented on September 27, 2024

Do you usually add babel-eslint for parsing errors

from curenetics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.