reactjs


File naming conventions in reactJS?


am rubyist. But i started learning reactJS as well. I thing which am confusing here is how to name folders and files in react app directory.
To name component files few people following TitleCase.js and few following camelCase.js.
To name app directories few people following camelCase and few
smallcase or small-case
I tried to find the official documentation on naming conventions in reactJS. But i couldn't. can some help me to find the exact way of naming files in reacts? Thanks in advance.
Regarding naming conventions, ReactJS is unopinionated.
There isn't an official guideline or statement about the questions you raised. You won't find them in the documentation either.
It's a personal (team) preference. If you struggle to enforce one, you could stick to something like Airbnb's mostly reasonable approach to React and JSX.
PS: As long as you're consistent, I would say you're safe.

Related Links

Run React Native component jsBundle on Web application
ESLint importing react
how to get selected value onChange of react redux-form drop down
how should I build onClick action in my react component + Redux
Code after a dispatch() isn't being executed
Redux fetch is returning empty
Set state in child after it will receive props?
What are selectors in redux?
React-redux get site base URL / window.location
React devToolsExtension breaks the store
correct store structure when an action has child that needs to be retrieved with an action/api
react lifecycle when using redux
How to use the same route for multiple routes in react?
How do you add a list to another list in onsen-ui?
Axios not returning value
Getting false warning on 'unknown props' in react

Categories

HOME
qlikview
postgresql
swift3
redux
primefaces
compression
qemu
jenkins-pipeline
dronekit
highmaps
android-webview
google-app-maker
point-of-sale
websharper
hdf5
camunda
web-worker
bookmarklet
openam
project-structure
minimagick
xna
inline-assembly
onclicklistener
rvm
akavache
tftp
launchd
windows-10-mobile
foxpro
opencsv
snapkit
availability
ilog
minitest
console.readline
const
usernotifications
ninja-forms
google-cloud-powershell
aspnetboilerplate
irr
web-technologies
cakephp-3.2
servicebus
logan-square
encoder
android-doze-and-standby
denodo
ng-class
noise
try-catch-finally
racket-student-languages
eclipse-mars
universe
init
db2-zos
jde
pebble-js
paypal-subscriptions
innertext
methodology
sdkman
transbase
self-join
vensim
system.diagnostics
mergecursor
caption
launcher
agent-based-modeling
visual-c#-express-2010
nspopupbutton
android-library
latex-suite
coinbase-php
bho
cloudmade
architectural-patterns
phone-state-listener
database-restore
urlfetch
django-tinymce
orchestration
flatten
socketasynceventargs
win-prolog
zend-validate
soapexception
cpack
focus-stealing
coderush-xpress
retrospectiva
office-2003

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App