Dejvino's Curriculum Vitae
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

14 wiersze
344 B

  1. 'use client'
  2. import React from 'react';
  3. import { createContext } from 'react';
  4. import { Person } from '../../Person';
  5. export const PersonContext = createContext(Person);
  6. export function PersonProvider({ children }) {
  7. return (
  8. <PersonContext.Provider value={Person}>
  9. {children}
  10. </PersonContext.Provider>
  11. )
  12. }