sophiebits / react-dom-mini

Toy React renderer from my React Conf 2019 talk, "Building a Custom React Renderer"
MIT License
592 stars 19 forks source link

Update ReactDOMMini.js #1

Closed jacklaurencegaray closed 3 years ago

jacklaurencegaray commented 4 years ago

I'm not sure if I understand it correctly or if I'm missing something. But by essence, the tiny fix is to translate React's className to the DOM element's class attribute. This is assuming the forEach loop is intended to pass the DOM attributes from the React component's props to the actual DOM element.