Skip to content

Instantly share code, notes, and snippets.

class List extends React.Component {
render() {
return (
<ul>
<ListItem />
</ul>
);
}
}
<button
aria-label={labelText}
onclick={onClickHandler}>
Click me!
</button>
class RefExample extends React.Component {
constructor (props) {
super(props)
this.handleClick = this.handleClick.bind(this)
}
handleClick () {
this.textInput.focus()
}
const algoliasearch = require('algoliasearch')
const express = require('express')
const bodyParser = require('body-parser')
const app = express()
const client = algoliasearch('H1LZZCXWZT', process.env.API_KEY)
const index = client.initIndex('movies')
app.get('/', (req, res) => res.send('GET'))