diff --git a/README.md b/README.md index 3435db7..e330759 100644 --- a/README.md +++ b/README.md @@ -518,7 +518,7 @@ You can use these callbacks for dynamic styling as well! getTrProps={(state, rowInfo, column) => { return { style: { - background: rowInfo.age > 20 ? 'green' : 'red' + background: rowInfo.row.age > 20 ? 'green' : 'red' } } }} @@ -543,7 +543,7 @@ const columns = [{ getProps: (state, rowInfo, column) => { return { style: { - background: rowInfo.name === 'Santa Clause' ? 'red' : null + background: rowInfo.row.name === 'Santa Clause' ? 'red' : null } } }