Skip to content

Instantly share code, notes, and snippets.

View ericmarcos's full-sized avatar

Eric Marcos ericmarcos

View GitHub Profile
import React from 'react'
import axios from 'axios'
import { Text, Carousel, Pic, Title, Subtitle, Button } from '@botonic/react'
export default class extends React.Component {
static async botonicInit({ input }) {
let url = `https://api.my-site.com/products`
let params = {query: input.data} // "Dark shoes"
let res = await axios.get(url, {params: params})
import Time from './actions/time'
export const routes = [
...
{path: 'show-time', text: /time/i, action: Time}
...
]
import React from 'react'
import { Text } from '@botonic/react'
export default class extends React.Component {
render() {
return <Text>Today is {new Date().toDateString()}</Text>
}
}

Keybase proof

I hereby claim:

  • I am ericmarcos on github.
  • I am ericmarcos (https://keybase.io/ericmarcos) on keybase.
  • I have a public key ASDDtKIWcXvObbySNhmSjCIGOQhIvbUSOzgG8luGFV4-bQo

To claim this, I am signing this object: