Skip to main content

3.02 Create Elements

App.js
import React, { Component } from 'react';
import './App.css';

class App extends Component {
render() {
return (
<div className="App">
</div>
);
}
}

export default App;
UserInput.js
import React from 'react'

const userInput = () => {
return <input type="text"></input>
}

export default userInput
UserOutput.js
import React from 'react'

const userOutput = () => {
return (
<div>
<p>Viva!</p>
<p>Cuba!</p>
</div>
)
}

export default userOutput