From 1f92ed8d4fa2c03c1f4e37668a1756ec3e344ba6 Mon Sep 17 00:00:00 2001 From: Mark McDonald Date: Thu, 24 May 2018 18:35:22 -0400 Subject: [PATCH] Add more documentation for overriding props (#975) I think this is the most common way of setting columns or expanderDefaults. I had to find issue #565 and then follow it to issue #394 to see explanations on how to do this. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 555216e..8519356 100644 --- a/README.md +++ b/README.md @@ -294,6 +294,8 @@ These are all of the available props (and their default values) for the main ` ({}), // Global Column Defaults + // To override only some values, import { ReactTableDefaults } from 'react-table' + // and construct your overrides (e.g. {...ReactTableDefaults.column, className: 'react-table-cell'}) column: { // Renderers Cell: undefined, @@ -329,6 +331,8 @@ These are all of the available props (and their default values) for the main `