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.
- package/README.md +3 -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
|
-
|
|
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
|
-
|
|
110
|
+
|
|
110
111
|
return <>
|
|
111
112
|
<h1>hello world</>
|
|
112
113
|
<Mycomponent ...props />
|
package/package.json
CHANGED