Comparing version 0.0.21 to 0.0.22
{ | ||
"name": "forgo", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"main": "./dist", | ||
"author": "Jeswin Kumar<jeswinpk@agilehead.com>", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/forgojs/forgo" | ||
}, | ||
"devDependencies": { | ||
@@ -6,0 +11,0 @@ "@types/jsdom": "^16.2.6", |
@@ -23,2 +23,7 @@ # forgo | ||
An easy way to get a project started is by cloning one of the following templates. These templates use parcel as the bundler/build tool. | ||
- [Starter-kit using JavaScript](https://github.com/forgojs/forgo-template-javascript) | ||
- [Starter-kit using TypeScript](https://github.com/forgojs/forgo-template-typescript) | ||
## A Forgo Component | ||
@@ -165,8 +170,10 @@ | ||
// Parent can catch the error by defining the error() function. | ||
function Parent( | ||
props | ||
) { | ||
function Parent(props) { | ||
return { | ||
render() { | ||
return <div><BadComponent /></div>; | ||
return ( | ||
<div> | ||
<BadComponent /> | ||
</div> | ||
); | ||
}, | ||
@@ -205,3 +212,3 @@ error(props, args) { | ||
But there are a couple of handy options to rerender, 'newProps' and 'forceRerender'. | ||
But there are a couple of handy options to rerender, 'newProps' and 'forceRerender'. | ||
@@ -220,3 +227,3 @@ newProps let you pass a new set of props while rerendering. If you'd like previous props to be used, pass undefined here. | ||
Forgo also exports a render method that returns the rendered DOM node that could then be manually mounted. | ||
Forgo also exports a render method that returns the rendered DOM node that could then be manually mounted. | ||
@@ -231,9 +238,7 @@ ```tsx | ||
## Routing | ||
Forgo Router is a tiny router for Forgo, and is just around 1KB gzipped. | ||
Forgo Router is a tiny router for Forgo, and is just around 1KB gzipped. | ||
https://github.com/forgojs/forgo-router | ||
## Try it out on CodeSandbox | ||
@@ -240,0 +245,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
82109
1
386
0