[TASK] Move function expressions into react classes