vaderjs 1.3.3-alpha-34 → 1.3.3-alpha-35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -73,8 +73,9 @@ For pages that have [params] you can derive it using this.request
73
73
 
74
74
  ```jsx
75
75
  // pages/home.jsx
76
- let {Component, useState} = await import('vaderjs/client') // this will be automatically handled by vader in compile time
77
- let Mycomponent = await require('./pages/mycomponent')
76
+ import {Component, useState, useRef} = from 'vaderjs/client'
77
+ import Mycomponent from './src/mycomponent.jsx'
78
+
78
79
  class Home extends Vader {
79
80
  constructor() {
80
81
  super();
@@ -90,7 +91,7 @@ class Home extends Vader {
90
91
  }
91
92
  }
92
93
 
93
- return {default:Home}
94
+ export default Home
94
95
  ```
95
96
 
96
97
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "vaderjs",
3
3
  "description": "A Reactive library aimed to helping you build reactive applications inspired by react.js",
4
4
  "module": "vader.js",
5
- "version": "1.3.3-alpha-34",
5
+ "version": "1.3.3-alpha-35",
6
6
  "bin": {
7
7
  "vader": "./vader.js"
8
8
  },