diff --git a/snippets/Callto.md b/snippets/Callto.md index 5dd76cd6c..59782a7af 100644 --- a/snippets/Callto.md +++ b/snippets/Callto.md @@ -3,24 +3,20 @@ title: Callto tags: components,beginner --- -Renders a link formatted to dial a phone number. +Renders a link formatted to call a phone number (`tel:` link). -- Destructure the component's props, use `phone` to create a `` element with an appropriate `href` attribute. +- Use `phone` to create a `` element with an appropriate `href` attribute. - Render the link with `children` as its content. ```jsx const Callto = ({ phone, children }) => { - return ( - {children} - ); + return {children}; }; ``` ```jsx ReactDOM.render( - - Call me! - , + Call me!, document.getElementById('root') ); ```