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

react-route display blank page
react native router flux: override android hardware back key
can't type in input fields when using material-ui-redux-form due to re rendering
undefined within the react component - but not in action
Updating a nested state in redux using Object.assign
Typescript input onchange event.target.value
ReactComponentTreeHook unexpected : Webpack 2
ReactJS: Uncaught TypeError: Cannot read property 'subscribe' of undefined(…)
Draft-js apply inline-styles to readonly editor
About injectScript in WebView for React-Native
My flux store gets re-instantiated on reload
React Mobx - component not updating after store change
Property not found - flowtype / react, using this
Render React nested components
React.JS Navigating to hash route does not update view
react $ dosn't seems to work

Categories

HOME
pact
swift3
macros
netty
mobile
domain-driven-design
azure-resource-manager
salesforce-lightning
opc-ua
artifactory
mailchimp
jshell
foreach
kohana
meson-build
sequence
handlebars.js
restheart
segmentation-fault
cracking
aws-sdk-cpp
fine-uploader
mbed
web-testing
amazon-data-pipeline
openam
alert
audio-streaming
scotty
react-jsx
single-page-application
custom-component
coccinelle
scrapy-spider
pydub
gulp-jshint
dynamic-memory-allocation
pypy
cqlsh
jboss-arquillian
multilanguage
snapkit
webclient
restler
headphones
flex3
kofax
motherboard
gstreamer-1.0
dotnetnuke-module
framebuffer
aspose.pdf
julia-jump
glide-image-library
definition
history
openpgp.js
aws-rds
activesupport
grib
trusted-computing
stringbuilder
falcon
django-celery
aws-kms
stdlist
music-player
dday
google-finance-api
notice
roslyn-code-analysis
vensim
valdr-bean-validation
screen-lock
google-experiments
xmla
growl
yosemite
sat4j
visual-c#-express-2010
hotlinking
cvi
kuka-krl
mongoid4
vbaccelerator
grunt-contrib-imagemin
friendly-id
zend-db-table
violation
maven-webstart-plugin
auctex
setcookie
idoc
junit-rule
m3u
states
animationdrawable
digg
xpolog
funambol
xhtmlrenderer
zipstream
xcdatamodel
mediastreamsource
chromebug
code-golf
large-data-volumes
carbon-emacs
helios
dojox.gfx

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