-
-
Notifications
You must be signed in to change notification settings - Fork 140
Comparing changes
Open a pull request
base repository: remarkablemark/html-react-parser
base: v0.0.4
head repository: remarkablemark/html-react-parser
compare: v0.0.5
- 7 commits
- 7 files changed
- 2 contributors
Commits on Aug 30, 2016
-
Remove
keyparameter fromreplaceand useReact.cloneElementThe previous implementation was to pass the `key` as the 2nd parameter in `replace` method and force the user to set the "key" prop in their custom React element. This creates further complexity for the end-user. As a result, use `React.cloneElement` which does the same thing without additional work from the user. `React.cloneElement` takes the React element and merges the "key" prop taken from the array index with the original element's props when applicable. https://facebook.github.io/react/docs/top-level-api.html#react.cloneelement
Configuration menu - View commit details
-
Copy full SHA for b86a350 - Browse repository at this point
Copy the full SHA b86a350View commit details -
Configuration menu - View commit details
-
Copy full SHA for e18cf81 - Browse repository at this point
Copy the full SHA e18cf81View commit details -
Update ESLint rule for
no-unused-varsCheck all variables for usage but do not check function arguments.
Configuration menu - View commit details
-
Copy full SHA for 26e4e7c - Browse repository at this point
Copy the full SHA 26e4e7cView commit details -
Merge pull request #18 from remarkablemark/remove-replace-key
Remove `key` parameter from `replace` and use `React.cloneElement` instead
Configuration menu - View commit details
-
Copy full SHA for 7522a0a - Browse repository at this point
Copy the full SHA 7522a0aView commit details -
Fix parsing of <script> and <style> tags
- Ensure empty <script> tag is converted to a React element and not an empty array `[]` - Add missing logic for parsing <style> DOM nodes to React element - Update tests and mocks
Configuration menu - View commit details
-
Copy full SHA for 9170e92 - Browse repository at this point
Copy the full SHA 9170e92View commit details -
Merge pull request #20 from remarkablemark/bug-script-style
Fix parsing of <script> and <style> tags
Configuration menu - View commit details
-
Copy full SHA for 020973e - Browse repository at this point
Copy the full SHA 020973eView commit details -
- Fix parsing of <script> and <style> tags (#20) - Remove `key` parameter in `replace` method and use `React.cloneElement` instead - Update tests and mocks - Update README and remove `key` parameter in `replace` - Update ESLint rule for `no-unused-vars`
Configuration menu - View commit details
-
Copy full SHA for 11770d9 - Browse repository at this point
Copy the full SHA 11770d9View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.0.4...v0.0.5