This repository was archived by the owner on Sep 3, 2022. It is now read-only.
Version 2.4.2
Refactor of setProp function. 1. Broke out setProp helper functions into separate files in folder: setPropHelpers. The setProp function imports these to use. 2. Helper function handleClassName converts className prop to class. 3. Helper function handleDangerousSetInnerHTML converts value of prop dangerouslySetInnerHTML into innerHTML value. 4. Helper function handleStyles converts object literal of style values into CSS styles. 5. Helper function handleXlinkHref converts Xlink-href prop into SVG 1.0 xlink:href attribute. 6. Fixed issue with Component.setState so that when using a callback, if the user fails to return prevState, the component will not try to update state. This avoids updates with bad state assignment. 7. Minor refactor of isSameNode function so that by default it returns false. 8. Updated new project jsconfig.json file to automatically support type checking with JSDoc comments in Visual Studio Code.