Skip to content

Commit

Permalink
React Keys: Fix sending null as a key
Browse files Browse the repository at this point in the history
  • Loading branch information
ariabuckles committed Oct 24, 2019
1 parent b2bebfa commit ebf17b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simple-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -508,13 +508,13 @@ var TYPE_SYMBOL =

var reactElement = function(
type /* : string */,
key /* : string | null */,
key /* : string | number | null | void */,
props /* : { [string]: any } */
) {
var element = {
$$typeof: TYPE_SYMBOL,
type: type,
key: key,
key: key == null ? undefined : key,
ref: null,
props: props,
_owner: null
Expand Down

0 comments on commit ebf17b3

Please sign in to comment.