Я хочу сделать вызов функции с динамическим в ReactJS.Сводный код, как показано ниже
import util from 'MyUtility';
export class RuiBaiComponent extends Component {
filter(functionName) {
// Here i want to call function in util
eval('util.'+ functionName + '()');
// ERROR CANNOT EXECUTED AS A FUNCTION
}
}