Skip to content

Commit 80b840d

Browse files
committed
working on docs
1 parent aa0d088 commit 80b840d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ You most likely want to use functional components when you have pure rendering t
664664
##### Grouping Components
665665
You can group components by declaring them in the same file. Both functional and class-based components can be declared in the same file. When the file is loaded, all the components in that file are registered, mounted, and bound.
666666

667-
```js
667+
```javascript
668668
// Main.js
669669
class App extends OpenScript.Component {...}
670670

@@ -681,7 +681,7 @@ function Header() {...}
681681
##### Loading the Component
682682
The components are in different files, therefore, they must be loaded and registered before rendering. To load a file that contains component declarations, ensure that you have set the components path in your `ojs-config` file. Then use the below code in the file you want to load the component in.
683683

684-
```js
684+
```javascript
685685
// folder structure
686686
|-components
687687
|-Blog

0 commit comments

Comments
 (0)