Vamos começar criando nossos arquivos dentro da pasta src
:
- Criar uma pasta
context
; - Dentro da pasta
context
vamos criar um arquivomyContext.js
;
Dentro do arquivo myContext.js
:
- Importar do react o
createContext
;
[ebuild N ] x11-libs/libdrm-2.4.120 | |
Would you like to merge these packages? [Yes/No] | |
>>> Verifying ebuild manifests | |
>>> Emerging (1 of 1) x11-libs/libdrm-2.4.120::gentoo | |
>>> Failed to emerge x11-libs/libdrm-2.4.120, Log file: | |
>>> '/var/tmp/portage/portage/x11-libs/libdrm-2.4.120/temp/build.log' | |
* Package: x11-libs/libdrm-2.4.120:0 | |
* Repository: gentoo | |
* Maintainer: x11@gentoo.org |
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
Pantheon is the desktop environment created for the elementary OS distribution. It is written from scratch in Vala, utilizing GNOME technologies with GTK 3 and Granite. All of Pantheon is working in NixOS and the applications should be available, aside from a few exceptions. To enable Pantheon, set
services.xserver.desktopManager.pantheon.enable = true;