pluralsight-course-server-side-rendered-react-nextjs icon indicating copy to clipboard operation
pluralsight-course-server-side-rendered-react-nextjs copied to clipboard

04 Source needs to be updated to match video

Open cforsyth68 opened this issue 4 years ago • 1 comments

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')
);

cforsyth68 avatar Jul 20 '21 19:07 cforsyth68

Thanks @cforsyth68

pkellner avatar Jul 20 '21 20:07 pkellner