In this article, we will implement react-color-log in react js.
First, we should install react-color-log in our application
npm i react-color-log
Import this package into our application
import React from 'react' import { _success, _info, _warning, _error } from 'react-color-log';
Below you can see how to use react-color-log in our application
import React from 'react' import { _success, _info, _warning, _error } from 'react-color-log'; export default function colorLog() { _success('log message') _info('log message') _warning('log message') _error('log message') return ( <div>colorLog</div> ) }
You can see below the output