{"__browser":{"country":"US","device":"unknown_device","mobile":false,"name":"unknown browser","platform":"unknown_platform","version":"0"},"__constants":{},"__CPDATA":{"domain_iframe":"https://cdpn.io","environment":"production","host":"codepen.io","iframe_allow":"accelerometer *; ambient-light-sensor *; camera *; display-capture *; encrypted-media *; geolocation *; gyroscope *; microphone *; midi *; payment *; vr *; web-share *; serial *; xr-spatial-tracking *","iframe_sandbox":"allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups-to-escape-sandbox allow-popups allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation"},"__graphql":{"data":{"data":{"sessionUser":{"id":"VoDkNZ","name":"Captain Anonymous","title":"Captain Anonymous","avatar":"https://assets.codepen.io/t-1/user-default-avatar.jpg?format=auto&version=0","currentContext":{"id":"VoDkNZ","title":"Captain Anonymous","name":"Captain Anonymous","avatar":"https://assets.codepen.io/t-1/user-default-avatar.jpg?format=auto&version=0","username":"anon","__typename":"User"},"currentTeamId":null,"username":"anon","admin":false,"anon":true,"pro":false,"verified":false,"featureFlags":[],"teams":[],"__typename":"User"}}},"url":"https://codepen.io/graphql","api":"cprails"},"__user":{"anon":true,"base_url":"/anon/","cohorts":[],"current_team_hashid":null,"current_team_id":0,"hashid":"VoDkNZ","id":1,"itemType":"user","name":"Captain Anonymous","paid":false,"tier":0,"username":"anon","created_at":null,"email_verified":null,"collections_count":0,"collections_private_count":0,"followers_count":0,"followings_count":0,"pens_count":0,"pens_private_count":0,"projects_count":0,"projects_private_count":0},"__firebase":{"config":{"apiKey":"AIzaSyBgLAe7N_MdFpuVofMkcQLGwwhUu5tuxls","authDomain":"codepen-store-production.firebaseapp.com","databaseURL":"https://codepen-store-production.firebaseio.com","disabled":false,"projectId":"codepen-store-production"},"token":"eyJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJodHRwczovL2lkZW50aXR5dG9vbGtpdC5nb29nbGVhcGlzLmNvbS9nb29nbGUuaWRlbnRpdHkuaWRlbnRpdHl0b29sa2l0LnYxLklkZW50aXR5VG9vbGtpdCIsImNsYWltcyI6eyJvd25lcklkIjoiVm9Ea05aIiwiYWRtaW4iOmZhbHNlfSwiZXhwIjoxNzM5MzUyNTk2LCJpYXQiOjE3MzkzNDg5OTYsImlzcyI6ImZpcmViYXNlLWFkbWluc2RrLThva3lsQGNvZGVwZW4tc3RvcmUtcHJvZHVjdGlvbi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInN1YiI6ImZpcmViYXNlLWFkbWluc2RrLThva3lsQGNvZGVwZW4tc3RvcmUtcHJvZHVjdGlvbi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInVpZCI6IlZvRGtOWiJ9.zjRKSpQg9Ip3D0uftJP2Xzh8vZcEQ4HZWs_VL9aFXhx8qT3U4WWI678bju_VlDtNsginoAm8wDTRQdb4nYR--9IROhgoaK_2BAVkYxVEI6MCtZwHFMqwYhHaJL69abSpUsb96Atly4ye67I5orgDmnLUyOt_g2nthC6DekhYoERAA4rD4mbpot_DTpLJ5-EA2DDTEiYZzW8KrpPo9iyyIfyJgCdk50tlR_lt0uhSgNH-k7mI7LfphVt7xny6AVePTke45a-Zk5i89qGha9NBVWE4OYi4hfTm789A_AqaXbOhPfRqZky1slhdqPZrWZsL_QjgG7-RTr_No1BA3nQ-NQ"},"__pay_stripe_public_key":"pk_live_2GndomDfiklqpSNQn8FrGuwZSMIMzha7DkLJqlYe7IR0ihKAlKdiHg68JJc5eVPt68rzAjzAAVXcUwjySHRCsgjQQ00gtRBUFNH","__pay_braintree_env":"production","__item":"{\"id\":61642386,\"user_id\":837599,\"html\":\"<!DOCTYPE html>\\n<html>\\n\\n<head>\\n <script src=\\\"https:\\/\\/unpkg.com\\/react@17\\/umd\\/react.development.js\\\"><\\/script>\\n <script src=\\\"https:\\/\\/unpkg.com\\/react-dom@17\\/umd\\/react-dom.development.js\\\"><\\/script>\\n <script src=\\\"https:\\/\\/unpkg.com\\/babel-standalone@6.26.0\\/babel.js\\\"><\\/script>\\n\\n <script type=\\\"text\\/babel\\\">\\n class App extends React.Component {\\n constructor(props) {\\n super(props);\\n \\n this.state = {\\n items: [\\n {label: 'one'},\\n {label: 'two'},\\n {label: 'three'},\\n ]\\n };\\n \\n this.addItem = this.addItem.bind(this);\\n this.remove = this.remove.bind(this); \\n }\\n \\n addItem() {\\n const newLabel = document.getElementById('input').value;\\n this.setState(\\n {items: [{label: newLabel}].concat(this.state.items)});\\n }\\n \\n remove(index) {\\n this.setState(\\n {items: this.state.items.filter(\\n (item, itemIndex) => itemIndex != index)}\\n );\\n }\\n \\n render() {\\n return (\\n <div>\\n <h1>List Without Keys<\\/h1>\\n \\n <input id=\\\"input\\\" \\/>\\n <button onClick={this.addItem}>Add<\\/button>\\n \\n <ul>\\n {\\n this.state.items.map((item, index) =>\\n <li onClick={()=>this.remove(index)}>{item.label}<\\/li>\\n )\\n }\\n <\\/ul>\\n \\n <p>Click to remove an item.<\\/p>\\n <\\/div>\\n );\\n }\\n }\\n\\n function load() {\\n let rootElement = document.getElementById('root');\\n ReactDOM.render(<App\\/>, rootElement);\\n }\\n <\\/script>\\n<\\/head>\\n\\n<body onload=\\\"load();\\\">\\n <div id=\\\"root\\\"><\\/div>\\n<\\/body>\\n\\n<\\/html>\",\"css\":\"\",\"js\":\"\",\"html_pre_processor\":\"none\",\"css_pre_processor\":\"none\",\"js_pre_processor\":\"none\",\"html_classes\":\"\",\"css_starter\":\"neither\",\"js_library\":null,\"created_at\":\"2022-06-24T04:25:31.185Z\",\"updated_at\":\"2022-06-25T22:12:01.467Z\",\"title\":\"React Without Keys\",\"description\":\"\",\"slug_hash\":\"gOvVLep\",\"head\":\"\",\"private\":false,\"slug_hash_private\":\"f9d228b7db0ec005e589c0dd84e7445c\",\"has_animation\":false,\"team_id\":0,\"css_prefix\":\"neither\",\"template\":false,\"parent_id\":59623159,\"comments_count\":0,\"custom_screenshot_filename\":null,\"loves_count\":0,\"pick\":false,\"popularity\":2,\"views_count\":16,\"pick_visible_at\":null,\"cpid\":\"018193f5-3b31-7721-9999-7a10a68ba84f\",\"is_new_editor_pen\":false,\"protected\":false,\"access\":\"Public\",\"pen_hash\":null,\"hashid\":\"gOvVLep\"}"}