pkellner / pluralsight-course-server-side-rendered-react-nextjs

This is the repository associated with the Pluralsight course "Building Server-side React Apps"
https://app.pluralsight.com/library/courses/building-server-side-rendered-react-apps-beginners
MIT License
81 stars 101 forks source link

04 Source needs to be updated to match video #118

Open cforsyth68 opened 3 years ago

cforsyth68 commented 3 years ago

https://github.com/pkellner/pluralsight-course-server-side-rendered-react-nextjs/blob/9519d0669fb59ba4ee77d2428596d40f9c6043bb/m3-Learning-the-Fundamentals/04-Creating-a-React-Functional-Component/index.js#L5-L7

To match video, 04 should show a functional component, as follows:

const Hello = function() {
    return React.createElement("h1",{},"Hello From Pluralsight and React");
};

ReactDOM.render(
    React.createElement(Hello,{},null),
    document.getElementById('app')
);
pkellner commented 3 years ago

Thanks @cforsyth68