Comments (5)
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.
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.
@wright1 cool, guess I've been working on collossal apps where everything gets auto uploaded to a CDN for too long now!
from curenetics.
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.
Do you usually add babel-eslint for parsing errors
from curenetics.
Related Issues (20)
- Warning modal not working HOT 2
- Scroll to top HOT 2
- Link up the actual custom Loading component
- Add spacing between Export Results and the icon
- Put filename at top of exports
- Clinical Trials design issues HOT 1
- Warning modal doesn’t appear when you click any button that might take you away from the results
- Header on mobile looks odd
- Location always shows 5 miles HOT 2
- Limit nearest locations to 5
- Add postcode input to enter details manually
- Bug fixing HOT 4
- More sorting options for matched trials HOT 1
- To remove old version from online searches
- New bugs for fixing HOT 4
- Validation on patient's age
- Remove irrelevant eligible criteria for cancer types other than prostate
- Loading page is rendering text outside of screen
- Spacing issues on clinical results
- Show 'N/A' rather than 'No data' on clinical results
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curenetics.