Commit 59045029 by Torkel Ödegaard Committed by GitHub

Update frontend.md

parent 707d0e13
...@@ -22,9 +22,7 @@ Generally we follow the Airbnb [React Style Guide](https://github.com/airbnb/ja ...@@ -22,9 +22,7 @@ Generally we follow the Airbnb [React Style Guide](https://github.com/airbnb/ja
* Components and types that needs to be used by external plugins needs to go into @grafana/ui * Components and types that needs to be used by external plugins needs to go into @grafana/ui
* Components should get their own folder under features/xxx/components * Components should get their own folder under features/xxx/components
* Sub components can live in that component folders, so small component do not need their own folder * Sub components can live in that component folders, so small component do not need their own folder
* Place test next to their component file (same dir) * Place test next to their component file (same dir)
* Mocks in __mocks__ dir
* Test utils in __tests__ dir
* Component sass should live in the same folder as component code * Component sass should live in the same folder as component code
* State logic & domain models should live in features/xxx/state * State logic & domain models should live in features/xxx/state
* Containers (pages) can live in feature root features/xxx * Containers (pages) can live in feature root features/xxx
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment