Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 553 Bytes

problems-solutions.md

File metadata and controls

24 lines (17 loc) · 553 Bytes

Problems and Solutions

React Router setup

  • Correct setup
    <Router history={ hashHistory }
        <Route path="/" component={ AppContainer }>
            <IndexRoute component={ ComponentWeWantToSeeFirst } />
            <Route path="/dashboard" component={ Dashboard } />
        </Route>
    </Router>

Unexpected token in React class declaration

  • ES6 React: functions are not separated by commas

Elasticsearch

get all indices: _cat/indices?v e.g. 'Ayooo', 'Mina'

search through indices: {index}/_search