摘要:
Previously we have 'OpaqueToken', but it is DEPRECATED. The new one is called 'InjectionToken'. The difference between OpaqueToken is for InjectionTok 阅读全文
摘要:
For example, when testing container component we might import lots of children components, but we didn't actually testing those children components. S 阅读全文
摘要:
The main idea for testing contianer component is to make sure it setup everythings correctlly. Call the onInit() lifecycle first, then the variables h 阅读全文
摘要:
Using pseudo-elements like ::before and ::after we can draw some simple icons without having using image assets which can help reduce the number of re 阅读全文
摘要:
A solid naming convention makes it less likely to run into naming conflicts and helps establish a semantic pattern that is easier for a team to follow 阅读全文
摘要:
Writing similar classes with minor variations, like utility classes, can be a pain to write and update. Sometimes just a single character is the only 阅读全文
摘要:
Great improvements and optimizations can be made to the output of bundled code. Prepack provides the ability to optimize code at build-time, producing 阅读全文