DEV Community

loading...

Discussion on: React Universal Hooks : just use****** everywhere (Functional or Class Component). Support React >= 16.8.0

Collapse
salvoravida profile image
Salvatore Ravidà Author • Edited

v 0.5.0 support React Dev Tools
index.js

import { supportReactDevTools } from 'react-universal-hooks';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';

supportReactDevTools ({ active: process.env!=="production" });

  ReactDOM.render(
      <App />,
    document.getElementById('root'),
  );

ReactDevTools