Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Latest commit

 

History

History
21 lines (17 loc) · 298 Bytes

noop.md

File metadata and controls

21 lines (17 loc) · 298 Bytes

noop

Provides an empty function to use as a default callback.

function noop()

Examples

import React from 'react';
import noop from 'utils/noop';

class App extends React.Component {
    static defaultProps = {
        onClick:  noop,
        onChange: noop
    }
}