# \[WEBPACK] 8. Webpack : Tích Hợp Jquery, React, Redux Devtools (nghiepuit)

Chỉnh sửa Router thành HashRouter

C:\Users\Administrator\Desktop\abc\src\components\App\App.js

```
import React, { Component } from 'react';
import './App.css';
import Menu from './../Menu/Menu';
import routes from './../../routes';
import { Switch, Route, BrowserRouter as Router, HashRouter } from 'react-router-dom';
class App extends Component {
  render() {
    return (
      <HashRouter>
        <div>
          <Menu />
          <div className="container">
            <div className="row">
              {this.showContentMenus(routes)}
            </div>
          </div>
        </div>
      </HashRouter>
    );
  }
  showContentMenus = (routes) => {
    var result = null;
    if (routes.length > 0) {
      result = routes.map((route, index) => {
        return (
          <Route
            key={index}
            path={route.path}
            exact={route.exact}
            component={route.main}
          />
        );
      });
    }
    return <Switch>{result}</Switch>;
  }
}
export default App;
```

Tích hợp Devtools

C:\Users\Administrator\Desktop\abc\src\app.js

Xem thêm: <https://stackoverflow.com/questions/56215220/react-redux-error-passing-several-store-enhancers-to-createstore>

```
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App/App';
import { createStore, applyMiddleware } from 'redux';
import appReducers from './reducers/index';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import 'bootstrap3/dist/css/bootstrap.min.css';
import 'jquery';
import 'bootstrap3/dist/js/bootstrap.min.js';
const composeEnhancer = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(appReducers, composeEnhancer(applyMiddleware(thunk)))
ReactDOM.render(
  <Provider store={store}>
      <App />
  </Provider>,
  document.getElementById('root')
);
```

{% file src="<https://2726517656-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M1E4Gk2ppVKb4olmnun%2F-MIZdekldoES6XkBHL7Q%2F-MIZj4gUsHhYHalJijy2%2Fsrc.rar?alt=media&token=e10355b3-6425-4456-815a-7b0d45ad6c1c>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://javascriptuse.gitbook.io/advanced/webpack-8.-webpack-tich-hop-jquery-react-redux-devtools.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
