react export
import React, { Component } from 'react';import React from 'react';
import {Text} from 'react-native';
export default function Cat() {
return (
<Text>Hello, I am your cat!</Text>
);
}//Export single component in react.js
import React from "react";
function MyInfo() {
return (
<div>
<h1>Swapnil</h1>
<p>Hy this is Swapnil, I have no idea who I am</p>
<ul>
<li>Ladakh</li>
<li>Himachal Pradesh</li>
<li>Vellangiri Mountains</li>
</ul>
</div>
)
}
export default MyInfo
Also in JavaScript:
- Error: Could not symlink include/node/common.gypi /usr/local/include/node is not writable.
- returned data has p tags react
- javascript less than but greater than
- how to move an ellipse along the x axis in javascript
- ng has unexpectedly closed (exit code 127).
- link stylesheet in javascript
- javascript array get nth element
- angular how to copy text with button
- require is not defined javascript
- javascript change web page title
- momentjs utcoffset
- laravel open json file in storage
- vue-js-toggle-button config
- space between react native
- How do you wait for 5 seconds in JavaScript?
- javascript print
- js loop over array of objects extract value
- function expression
- double question mark javascript
- js array to csv
- swift append to array
- tableau js api
- javascript replace p tags with new line
- jsx full form