How to use the table/helper.isReactComponent function in table

To help you get started, we’ve selected a few table examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github youzan / zent / packages / zent / __tests__ / table / helper.js View on Github external
it('isReactComponent', () => {
    const pureFn = () => {};
    class reactFn extends PureComponent {}
    expect(helper.isReactComponent(pureFn)).toEqual(false);
    expect(helper.isReactComponent(reactFn)).toEqual(true);
  });
github youzan / zent / packages / zent / __tests__ / table / helper.js View on Github external
it('isReactComponent', () => {
    const pureFn = () => {};
    class reactFn extends PureComponent {}
    expect(helper.isReactComponent(pureFn)).toEqual(false);
    expect(helper.isReactComponent(reactFn)).toEqual(true);
  });