Question: I want to only see the times in the dictionary as it it currently being printed like

[![dictionary](https://i.stack.imgur.com/YHmR2.jpg)](https://i.stack.imgur.com/YHmR2.jpg)

How do i only see, for example the 17:00 - 18:00 part of the dictionary.

```
event_dates = {} #dictionary to store event dates and time
df = pd.read_html('https://www.dcu.ie/students/events')[0]['Event date']
event_dates.update(df)

```

I have tried using the pop method but doesn't seem to work.
this is how i am printing it

```
for key in event_dates.values():
     print(key)

```

Answer: 
For Child to Parent Interaction, you should pass a function as prop to the child from parent..

```
export class Form extends React.Component<FormProps, {
        ...,
        isChecked?: boolean}> {
    constructor(props: FormProps) {
        super(props);

        this.state = {
          ...,
          isChecked:false
        };
     render() {

       return <div>
               <Input 
                 name="Name" 
                 required={true} 
                 isChecked={this.state.isChecked}
                 handleChecked={
                 (isChecked: boolean) => this.setState({isChecked})
                 }
                />
             </div>
    }

    export function Input(props: React.PropsWithChildren<{name: string, required?: boolean, isChecked?:boolean, handleChecked?: (isChecked: boolean) => void}>) {

      const [share, setShare] = useState(false);

      return <Fragment>
        <div>
          {props.name}
          <span onClick={
              (event) => {
                  setShare(!share);
                  if(handleChecked) {props.handleChecked(share);}
          }}>Selection {props.required ? '(Required)': ''}</span>
        </div>
      </Fragment>;
    }

```
Very easy to do you just need to pass a `handleChange` prop to your child component from the parent component and then utilize it in the child component.

Checkout this [code-sandbox](https://codesandbox.io/s/flamboyant-wozniak-7jd8x8?file=/src/App.js)