I hereby claim:
- I am schnerd on github.
- I am dschnurr (https://keybase.io/dschnurr) on keybase.
- I have a public key ASCO-9Kbv3wNLNAhXZHflAdH3eHn9WkXsI0LAAzIpfX5Qwo
To claim this, I am signing this object:
| // Autocomplete.js | |
| import React from 'react'; | |
| import * as defaultComponents from './styled-elements'; | |
| class Autocomplete extends React.Component { | |
| // Setup & handlers omitted to keep this example short | |
| getSharedStyleProps() { | |
| const {isOpen, isError} = this.state; |
| function getComponents(defaultComponents, overrides) { | |
| return Object.keys(defaultComponents).reduce((acc, name) => { | |
| const override = overrides[name] || {}; | |
| acc[name] = { | |
| component: override.component || defaultComponents[name], | |
| props: {$style: override.style, ...override.props}, | |
| }; | |
| return acc; | |
| }, {}); | |
| } |
I hereby claim:
To claim this, I am signing this object:
| license: mit |
| const express = require('express'); | |
| const bodyParser = require('body-parser') | |
| const fetch = require('node-fetch'); | |
| const app = express() | |
| const port = 3008 | |
| app.use(bodyParser.json()); | |
| app.post('/api/generate', (req, res) => { | |
| var PROMPT = req.body.subject; |