Okay so your code has a problem. Here's a general guide on steps you should take.
This should be obvious but you need to be running your code to debug it.
This is a document which tries to collect common Pitfalls that developers fall into when learning React for the first time.
This is usually caused by misunderstanding the component lifecycle. Components in React render synchronously, which means that the first time a component renders it will often have no data, or empty data.
Example:
When setting up Language Server Protocol on Neovim, what plugins do what can be pretty confusing. So this table is a list of the most common plugins people use and what they are and why they are.
Plugin | Role | Why? |
---|---|---|
lspconfig | Configuring the language servers | You can use neovim's built in vim.lsp.start() function, but often we don't know all the command line arguments and options needed to pass to that function, so lspconfig is really just a database of a bunch of configurations for lsps |
mason | Installing language servers | Mason will automatically download and install the actual language server programs. This is optional because if you install an LSP server in your $PATH manually you don't necessarily need this |
mason-lspconfig | Automatically setting up lsps when you install them | This glues lspconfig and mason together, So when an lsp is configured the setup function for it will be automatically called, not necessary if you want to manage your LSPs manually |
This is my curated list of the neovim plugins I can't live without
Note: if you are just starting out, check out kickstart.nvim
This is my curated list of command line utilities that I can't live without
cd
command. It will automatically remember commonly visited directories, and you can jump to them instantly.local neovim = { | |
[[⠀⠀⠀⢀⡴⣂⠀⠀⠀⠀⠀⠀⠀⠀⢰⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀]], | |
[[⠀⢀⡴⣏⣷⡹⣆⡀⠀⠀⠀⠀⠀⠀⢸⣯⣷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀]], | |
[[⣴⣻⣽⣻⣼⢳⡹⣖⡄⠀⠀⠀⠀⠀⢸⣷⢿⣾⢷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠿⠿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ]], | |
[[Γú»Γó╖Γú╗Γó╖Γú»Γó│Γí¥Γí╛Γú£ΓíåΓáÇΓáÇΓáÇΓáÇΓó╕Γú┐Γí┐Γú»Γú┐ΓíçΓáÇΓáÇΓáÇΓáÇΓáÇΓóÇΓíÇΓáÇΓúÇΓúñΓúñΓúÇΓáÇΓáÇΓáÇΓáÇΓáÇΓúÇΓúñΓúñΓúÇΓíÇΓáÇΓáÇΓáÇΓáÇΓóÇΓúáΓúñΓúñΓúÇΓíÇΓáÇΓóáΓúñΓúñΓáÇΓáÇΓáÇΓáÇΓóÇΓúñΓúñΓíäΓúñΓúñΓáÇΓóáΓúñΓíäΓúáΓúñΓú╢ΓúñΓíÇΓóÇΓúáΓú┤Γ |