merkle-open / gondel

🚡 Gondel is a tiny library to bootstrap frontend components
https://gondel.js.org
MIT License
36 stars 10 forks source link

docs: Use react render function instead of class inside the usage example #63

Closed jantimon closed 4 years ago

jantimon commented 4 years ago

lets use the function syntax to simplify the demo:


type Props = {
  title: string;
};

export const ReactApp = (props: Props) => {
  return <AwesomeButton type="primary">{props.title}</AwesomeButton>;
};
github-actions[bot] commented 4 years ago

Size Change: 0 B

Total Size: 46.5 kB

ℹ️ View Unchanged | Filename | Size | Change | | |:--- |:---:|:---:|:---:| | `packages/core/dist/gondel.es5.js` | 7.66 kB | 0 B | | | `packages/core/dist/gondel.es5.min.js` | 2.93 kB | 0 B | | | `packages/core/dist/GondelAutoStart.js` | 573 B | 0 B | | | `packages/core/dist/GondelComponent.js` | 197 B | 0 B | | | `packages/core/dist/GondelComponentRegistry.js` | 884 B | 0 B | | | `packages/core/dist/GondelComponentStarter.js` | 1.79 kB | 0 B | | | `packages/core/dist/GondelDecorators.js` | 1.02 kB | 0 B | | | `packages/core/dist/GondelDomUtils.js` | 1.31 kB | 0 B | | | `packages/core/dist/GondelEventEmitter.js` | 497 B | 0 B | | | `packages/core/dist/GondelEventRegistry.js` | 2.76 kB | 0 B | | | `packages/core/dist/GondelPluginUtils.js` | 872 B | 0 B | | | `packages/core/dist/index.js` | 496 B | 0 B | | | `packages/plugins/data/dist/DataDecorator.js` | 809 B | 0 B | | | `packages/plugins/data/dist/DataPlugin.js` | 605 B | 0 B | | | `packages/plugins/data/dist/index.es5.js` | 1.6 kB | 0 B | | | `packages/plugins/data/dist/index.es5.min.js` | 879 B | 0 B | | | `packages/plugins/data/dist/index.js` | 188 B | 0 B | | | `packages/plugins/events/dist/index.es5.js` | 1.84 kB | 0 B | | | `packages/plugins/events/dist/index.js` | 2.31 kB | 0 B | | | `packages/plugins/hot/dist/index.js` | 391 B | 0 B | | | `packages/plugins/jquery/dist/index.es5.js` | 565 B | 0 B | | | `packages/plugins/jquery/dist/index.js` | 508 B | 0 B | | | `packages/plugins/media-queries/dist/index.es5.js` | 3.08 kB | 0 B | | | `packages/plugins/media-queries/dist/index.js` | 2.04 kB | 0 B | | | `packages/plugins/react/dist/AppWrapper.js` | 754 B | 0 B | | | `packages/plugins/react/dist/GondelReactComponent.js` | 2.02 kB | 0 B | | | `packages/plugins/react/dist/hooks.js` | 743 B | 0 B | | | `packages/plugins/react/dist/index.js` | 174 B | 0 B | | | `packages/plugins/react/dist/utils.js` | 162 B | 0 B | | | `packages/plugins/resize/dist/index.es5.js` | 3.01 kB | 0 B | | | `packages/plugins/resize/dist/index.js` | 1.91 kB | 0 B | | | `packages/plugins/resize/dist/index.test.js` | 1.94 kB | 0 B | |

compressed-size-action