{"__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.eyJhdWQiOiJodHRwczovL2lkZW50aXR5dG9vbGtpdC5nb29nbGVhcGlzLmNvbS9nb29nbGUuaWRlbnRpdHkuaWRlbnRpdHl0b29sa2l0LnYxLklkZW50aXR5VG9vbGtpdCIsImNsYWltcyI6eyJvd25lcklkIjoiVm9Ea05aIiwiYWRtaW4iOmZhbHNlfSwiZXhwIjoxNzM4ODY1OTg2LCJpYXQiOjE3Mzg4NjIzODYsImlzcyI6ImZpcmViYXNlLWFkbWluc2RrLThva3lsQGNvZGVwZW4tc3RvcmUtcHJvZHVjdGlvbi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInN1YiI6ImZpcmViYXNlLWFkbWluc2RrLThva3lsQGNvZGVwZW4tc3RvcmUtcHJvZHVjdGlvbi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInVpZCI6IlZvRGtOWiJ9.92HrDSqpa9EELwELBTvBOJncxEEbEgDw4TQCXsQcXCqY5O-sWtS-j1nmQQhELajoXBTthnLttYes0PVINaCrmcfGUrRcJImHTMji2wKG_AqyVk8PiDYAURg0beSv3iUmNRL3P7M-bXmB9qhR1B2Yss8oZHJn_hjbelVsQv1000Rl8ZtdAcqxmsGvdNJqmw1N0tAwbnPD-OmdZOG3GEf1dgeDGwR6dObUsYXs5MDQT1uGdZYU8HPAVx_bRdvQOXEAsnj32HZ8kBjZyJR2-CiqGuL9g5Ynoib7rT3v_d7Lyq5AA1BjvX3zfWUPmG-HMwuxUD6GFNN3dpHqtS8sgcQmWw"},"__pay_stripe_public_key":"pk_live_2GndomDfiklqpSNQn8FrGuwZSMIMzha7DkLJqlYe7IR0ihKAlKdiHg68JJc5eVPt68rzAjzAAVXcUwjySHRCsgjQQ00gtRBUFNH","__pay_braintree_env":"production","__item":"{\"id\":61682692,\"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', id: 1},\\n {label: 'two', id: 2},\\n {label: 'three', id: 3},\\n ],\\n nextId: 4\\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, id: this.state.nextId}].concat(this.state.items),\\n nextId: this.state.nextId + 1});\\n }\\n \\n remove(id) {\\n this.setState(\\n {items: this.state.items.filter(\\n (item) => item.id != id)}\\n );\\n }\\n \\n render() {\\n return (\\n <div>\\n <h1>List With Keys<\\/h1>\\n \\n <input id=\\\"input\\\" \\/>\\n <button onClick={this.addItem}>Add<\\/button>\\n \\n <ul>\\n {\\n this.state.items.map((item) =>\\n <li onClick={()=>this.remove(item.id)}\\n key={item.id}>\\n {item.label}\\n <\\/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-26T22:28:55.712Z\",\"updated_at\":\"2022-06-26T22:47:49.083Z\",\"title\":\"React With Keys\",\"description\":\"\",\"slug_hash\":\"NWYKgYw\",\"head\":\"\",\"private\":false,\"slug_hash_private\":\"5eae2e46a8a57fe899ce47beb867b43a\",\"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\":1,\"views_count\":10,\"pick_visible_at\":null,\"cpid\":\"0181a221-d720-762d-9267-4d538572414e\",\"is_new_editor_pen\":false,\"protected\":false,\"access\":\"Public\",\"pen_hash\":null,\"hashid\":\"NWYKgYw\"}"}