Skip to content

Instantly share code, notes, and snippets.

import React from 'react';
import { withChatContext } from 'stream-chat-react';
class ChannelSearch extends React.PureComponent {
search = async (query, e) => {
e.preventDefault();
const results = await this.props.client.search(
{ type: 'messaging' },
query,
{
@jaapbakker88
jaapbakker88 / index.html
Created December 3, 2018 08:25
react-activity-feed-template
<div id="root"></div>

react-activity-feed tutorial

Ideas for implemetation:

React Live Demo might require a lot of work, but is the most flexible

Codesandbox is a full dev enviroment which is easy to setup, but not very customizable. It's embedable. https://codesandbox.io/s/o40oq8pqy5

Setup

@jaapbakker88
jaapbakker88 / README.md
Created February 2, 2018 10:32
Sequelize + Express + Migrations + Seed Starter
function setTooltip(btn, message) {
$(btn).tooltip('hide')
.attr('data-original-title', message)
.tooltip('show');
}