We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
{ "data": { "firstName": "Jane", "lastName": "Doe", "email": "example@email.com" } }
{ "error": { "message": "Use 8 characters or more for your password" } }
try { const res = await axios.post(...); const { firstName, lastName, email } = res.data.data; } catch (err) { const status = err.response.status; const { message } = err.response.data.error; }
Use functional component instead of class component
Use state hooks
Break down components as much as possible
kebab-case
backend/main-endpoints/routes
officer-manager.js
PascalCase.jsx
ProfileHeader.jsx
PascalCase
ProfileHeader.css ProfileHeader.scss
helper-function.js header-image.jpg
camelCaseDB
camelCase
append DB to the end of the name
DB
singular
myNewDB
lowercasenoseparator
lowercase
no separators
plural
doorcodes inventoryitems
accessLevel firstName
BEM — Block Element Modifier