How to addCellCss in grid API

I tried some css strings such as “green”, “color:green”, “green”, “{color:green}” to dynamically change cell color. The call is aGrid.addCellCss(“1”, “name”, css). By the way, the grid is wrapped at a React component. Can someone help ? Thank you.

aGrid.events.on(“AfterEditEnd”, (value, row, column) => {
aGrid.addCellCss(row.id, column.id, css)
}

Please, refer to the following snippet:
https://snippet.dhtmlx.com/rgbcj8ay