3 ms·
I felt the same way coming to React from Angular. It's basically just writing functions: function HelloWorld(props) { return <h1>Hello World from {props.name
by ilovecaching 8y ago
I felt the same way coming to React from Angular. It's basically just writing functions:
function HelloWorld(props) {
return <h1>Hello World from {props.name}</h1>;
}
function App() {
return (
<div>
<HelloWorld name="Sara" />
</div>
);
}
ReactDOM.render(
<App />,
document.getElementById('root')
);
That's pretty much the whole thing.