title: How do you pass additional props to a functional component in React?
body: <pre><code>  export function TodosContextProvider( {children}: {children: React.ReactNode}, props: any) {
      const [todos, dispatch] = React.useReducer(todosReducer, [
        {
          Id: 1,
          Title: 'Learn Context API',
          Done: true
        },
        {
          Id: 2,
          Title: 'Learn TypeScript',
          Done: true
        },
        {
          Id: 3,
          Title: 'Use Context API with TypeScript',
          Done: false
        }
      ]);
  
      console.log(props.siteUrl);
      return (
        &lt;TodosDispatchContext.Provider value={dispatch}&gt;
          &lt;TodosStateContext.Provider value={todos}&gt;
            {children}
          &lt;/TodosStateContext.Provider&gt;
        &lt;/TodosDispatchContext.Provider&gt;
      );
    }
  </code></pre>
  
  <p>I have this TodosContextProvider, I wrote it and then added an additional argument called props in the hope that I could pass some additional arguments to my function component from the root class.</p>
  
  <pre><code>export default class Crud extends React.Component&lt;ICrudProps, {}&gt; {
    public render(): React.ReactElement&lt;ICrudProps&gt; {
  
      return (
        &lt;TodosContextProvider props={this.props}&gt;
          &lt;TodoForm /&gt;
          &lt;TodoList /&gt;
        &lt;/TodosContextProvider&gt;
      );
    }
  }
  </code></pre>
  
  <p>I did the following and passed this.props to props in order to log it and see the content from TodosContextProvider, but this throws me an error.</p>
  
  <pre><code>Type '{ children: Element[]; props: Readonly&lt;ICrudProps&gt; &amp; Readonly&lt;{ children?: ReactNode; }&gt;; }' is not assignable to type 'IntrinsicAttributes &amp; { children: ReactNode; }'.
    Property 'props' does not exist on type 'IntrinsicAttributes &amp; { children: ReactNode; }'.ts(2322)
  </code></pre>
  
  <p>It seems I can't just add an argument the conventional way if I use children as an argument. How do I do what I intend to do?</p>