vaderjs 1.3.3-alpha-51 → 1.3.3-alpha-52

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 +3 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -104,9 +104,10 @@ Function based components
104
104
 
105
105
  ```jsx
106
106
  import Mycomponent from './src/mycomponent.jsx'
107
- export default function(props){
107
+ // function components have direct access to request and response both param way and using this.request or this.response!
108
+ export default function(req, res){
108
109
  this.key = ''
109
- console.log(this) // returns the component object data
110
+
110
111
  return <>
111
112
  <h1>hello world</>
112
113
  <Mycomponent ...props />
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-51",
5
+ "version": "1.3.3-alpha-52",
6
6
  "bin": {
7
7
  "vader": "./vader.js"
8
8
  },