Skip to content

Instantly share code, notes, and snippets.

@luismendes070
Created April 6, 2021 19:34
Show Gist options
  • Save luismendes070/4fe5b38ea66a477d114cf1ccdbb4b2d2 to your computer and use it in GitHub Desktop.
Save luismendes070/4fe5b38ea66a477d114cf1ccdbb4b2d2 to your computer and use it in GitHub Desktop.
render props
(JSX attribute) position: number[]
O tipo '{ position: number[]; mymap: number[][]; mapData: number[][]; }' não pode ser atribuído ao tipo 'IntrinsicAttributes & IntrinsicClassAttributes<Tab1> & Readonly<{}> & Readonly<{ children?: ReactNode; }>'.
A propriedade 'position' não existe no tipo 'IntrinsicAttributes & IntrinsicClassAttributes<Tab1> & Readonly<{}> & Readonly<{ children?: ReactNode; }>'.ts(2322)
@luismendes070
Copy link
Author

@luismendes070
Copy link
Author

<ErrorBoundary> <Tab1 position={[51.505, -0.09]} mymap={[ [51.515, -0.09], [51.52, -0.1], [51.52, -0.12], ]} mapData={ [ [51.515, -0.09], [51.52, -0.1], [51.52, -0.12], ] }/> </ErrorBoundary>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment