Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

forgo

Package Overview
Dependencies
Maintainers
1
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

forgo - npm Package Compare versions

Comparing version 0.0.21 to 0.0.22

7

package.json
{
"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

README.md

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc