How to write propsType and defaultProps of react pure components

react is 15.3

import React, { Component, PropTypes} from "react"


const FormTableLayout = (props) =>{

  return (
    <div className="farm-card">
    </div>
  )
}

// 
FormTableLayout.PropTypes = {
  title:PropTypes.string,
  returnBtn:PropTypes.bool,
}
Apr.01,2021

mistake PropTypes should be lowercase


where do you see it doesn't work?
you did not pass in any parameters.
when introducing a component, pass the wrong type of parameter to see if the browser has thrown an exception.

  

defaultProps can be written by the default parameter of props (props = defaultProps) = > {}

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e46699-59137.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e46699-59137.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?