π Spookyberb π β 09-53 Nov 29
What is the correct naming JS/React convention to name files? The forlders must be in upper or lower case?
17 Replies
Unknown Userβ’3y ago
Message Not Public
Sign In & Join Server To View
in my case
all the files in SearchCollapsibles are JSX
Unknown Userβ’3y ago
Message Not Public
Sign In & Join Server To View
js and jsx doesnt matter
its literally the same
Unknown Userβ’3y ago
Message Not Public
Sign In & Join Server To View
correct
Unknown Userβ’3y ago
Message Not Public
Sign In & Join Server To View
so the folders
if its a general page
for example financial instruments
its a whole page
it should go all in lowercase
but folders that are full of components
Ive been all my life naming them in UpperCase
Unknown Userβ’3y ago
Message Not Public
Sign In & Join Server To View
im asking π
Unknown Userβ’3y ago
Message Not Public
Sign In & Join Server To View
yeah
its cleaner
thank you
ill take it into account
Unknown Userβ’3y ago
Message Not Public
Sign In & Join Server To View
and what about the source files to those folders?
index.jsx
or FinancialInstruments.jsx
Unknown Userβ’3y ago
Message Not Public
Sign In & Join Server To View
components
This thread hasnβt had any activity in 12 hours, so itβs now locked.
Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1047087964032880660