import PropTypes from 'prop-types';
      
      PropTypes.oneOfType([
        
      ]).isRequired

      Javascript language logopropTypeOneOfTypeRequired

      JavaScript snippets for React

      This code asserts that the type of the object passed in as the argument must be of type oneOfType, which is a list of types.

      Shortcut: ptetr

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.