注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
antra 前端面经,求加米,救救孩子
1. Describe flex and grid
Both are css of grid layout. Flexbox was designed for layout in one dimension - either a row or a column. Grid was designed for two-dimensional layout - rows, and columns at the same time.
2 How to center an element
To horizontally center a block element, use margin: auto;
To just center the text inside an element, use text-align: center;
Left and Right Align - Using position
The CSS box-sizing property is used to specify how to calculate the total height and width of an element.
3. how to use css and apply css in html
• Inline - by using the style attribute inside HTML elements
• Internal - by using a <style> element in the <head> section
• External - by using a <link> element to link to an external CSS file
4. box model, position,layout
CSS box model is essentially a box that wraps around every HTML element. It consists of: margins, borders, padding, and the actua interacting with the app
A callback is a function that will be executed after another function gets executed.(function as arguments of another function)
Objects have properties and type
Components are independent and reusable bits of code. They serve the same purpose as JavaScript functions, but work in isolation and return HTML.
Function component and class component
Each component in React has a lifecycle which you can monitor and manipulate during its three main phases.
The three phases are: Mounting, Updating, and Unmounting.
Mounting means putting elements into the DOM. |