# createTableStore # Function: createTableStore() ```ts function createTableStore(features, initialState): Store>; ``` Defined in: [core/table/constructTable.ts:22](https://github.com/TanStack/table/blob/main/packages/table-core/src/core/table/constructTable.ts#L22) ## Type Parameters ### TFeatures `TFeatures` *extends* [`TableFeatures`](../interfaces/TableFeatures.md) ## Parameters ### features `TFeatures` ### initialState `Partial`\<[`TableState`](../type-aliases/TableState.md)\<`TFeatures`\>\> | `undefined` ## Returns `Store`\<[`TableState`](../type-aliases/TableState.md)\<`TFeatures`\>\>