I'm sure that the answer to this question is simple, I just can't seem to see it.
My data table is not rendering any data and I have no idea why. I have reviewed entirely too many examples online and Im sure that I have just become blind to the solution.
JS:
import { LightningElement, track, wire, api } from 'lwc';
const columns = [
{label: 'string', fieldName: 'string', type: 'text'}
];
const testData = [
{num: "1", string: "Test1"},
{num: "2", string: "Test1"},
{num: "3", string: "Test1"}
];
export default class testLwc extends LightningElement {
}
HTML
<template>
<lightning-datatable key-field='id' data={testData} columns={columns} ></lightning-datatable>
</template>
Render: