Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Binding element 'children' implicitly has an 'any' type

$
0
0
   i notice that below code should be js coding style, how could i write in the tsx style

import React, { Children } from 'react';import {Text,StyleSheet} from 'react-native';

export function Heading ({children, props}){    return <Text{...props}>{children}</Text>}

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>