August 2017
Beginner
374 pages
10h 41m
English
The last step is to not display the DevTools component when we are not running in development mode. Edit src/components/App.jsx, and consider the following line:
<DevTools />
Replace the preceding line with the following conditional expression, which only renders the component when the NODE_ENV environment variable is not set to 'production':
{ (process.env.NODE_ENV !== 'production') && <DevTools /> }
Read now
Unlock full access