In the react docs , it writes like:
import React from 'react';
import CustomButton from './CustomButton';
But I must write like :
import React from 'react';
import {CustomButton} from './CustomButton';
Otherwise the console gives me some errors like :
Uncaught SyntaxError: Identifier 'ruleObj' has already been declared
at <anonymous>:1:1