text 情态动词

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 情态动词相关的知识,希望对你有一定的参考价值。

```style={{
              display: this.state.open ? 'block' : 'none',
              background: 'salmon',
              height: '100vh',
              width: '100vw',
              position: 'absolute',
              top: '0',
              left: '0'
            }}```
```import React, { Component } from 'react';
------------------------------------------------------------------------------------------------------------
import Dummy from './Dummy';
import ErrorBoundary from './ErrorBoundary';
import Modal from './Modal';

import './App.css';

class App extends Component {
  state = { open: false };
  render() {
    return (
      <ErrorBoundary>
        <div className="App">
          <Dummy />
          <button onClick={() => this.setState({ open: true })}>
            Open Modal
          </button>
        </div>
        <Modal>
          <div
            style={{
              display: this.state.open ? 'block' : 'none',
              background: 'salmon',
              height: '100vh',
              width: '100vw',
              position: 'absolute',
              top: '0',
              left: '0'
            }}
          >
            Hello from Modal
            <button onClick={() => this.setState({ open: false })}>
              Close
            </button>
          </div>
        </Modal>
      </ErrorBoundary>
    );
  }
}

export default App;```

以上是关于text 情态动词的主要内容,如果未能解决你的问题,请参考以下文章

[词性] 二十二情态动词 [ can ] [ could ] [ may ] [ might ] [ must ]

21 情态动词

英语语法最终珍藏版笔记-4助动词和情态动词

关于情态动词would

英语语法最终珍藏版笔记-6“情态动词+have+ done”的含义

need的用法