Skip to content

Commit 88c7abc

Browse files
committed
feat: add documentation and remove console log
1 parent be92464 commit 88c7abc

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

apps/docs/content/1.getting-started/1.index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,12 @@ You can write declarative Vue components:
5353
```
5454

5555
This approach **reduces the learning curve** significantly while preserving all the power and flexibility of Three.js.
56+
57+
### Component Name Casing
58+
59+
Throughout the guide, we are using PascalCase names when registering components.
60+
::read-more{to="https://vuejs.org/guide/components/registration.html#component-name-casing"}
61+
::
62+
63+
Tres also supports the usage of kebab-case for its components. If you want to use the kebab-case notation in combination with the TresJS eslint config, you should deactivate the rule
64+
`vue/component-name-in-template-casing` in your eslint configuration.

packages/core/src/core/nodeOps.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export const nodeOps: (context: TresContext) => RendererOptions<TresObject, Tres
2424
if (tag.includes('-')) {
2525
tag = tag.replace(/-([a-z])/g, (_, c) => c.toUpperCase())
2626
.replace(/^[a-z]/, c => c.toUpperCase())
27-
console.warn('Tag output after kebabToCamel', tag)
2827
}
2928
let name = tag.replace('Tres', '')
3029
let obj: TresObject | null

0 commit comments

Comments
 (0)