Comments (8)
from dynamic-document.
markdownは直接記述のみでうまく動けばOK
from dynamic-document.
上の図にあるdocumentオブジェクトのイメージです。ただし,名前がdocumentなのはイケてない気がする。(JSのdocumentオブジェクトとかぶりそう・・・)いい感じの名前付けをしてほしいです。
{
id: hogehoge
url: パーマリンク的な
lead: マークダウン
content: マークダウン
question: マークダウン
options:[
{
label: 'はい',
next: 「はい」をクリックしたときに遷移する
documentオブジェクト
},
{
label: 'はい',
next: 「はい」をクリックしたときに遷移する
documentオブジェクト
},
{
label: 'はい',
next: 「はい」をクリックしたときに遷移する
documentオブジェクト
}
]
}
from dynamic-document.
markdownは直接記述のみでうまく動けばOK
これよくわかってないんですけど,すでに記述されたmarkdownが表示できればokって解釈で問題ないですか?
ボタンを押すと適切なドキュメントに移動する。 ボタンは見た目だけで,実質リンクでOK(onClickにする必要なし)
- modelの作成(Reactのお作法がわからないんですが,MVCでいうところのmodelと理解してください)
- modelにデータを突っ込むと,そのとおりに遷移して,データ通りのmdが表示される
ボタンを押したら,その遷移先となるurlをオブジェクトから取得して遷移させるといった処理がmodelって解釈で問題ないですか?
from dynamic-document.
これよくわかってないんですけど,すでに記述されたmarkdownが表示できればokって解釈で問題ないですか?
オブジェクトに直接マークダウンが記述されている状態のことです。例えば以下のような。
{
id: hogehoge,
url: パーマリンク的な,
lead: 'これは**リード文**です',
content: `Just a link: https://reactjs.com.
~~取り消し線~~
* [ ] hoge
* [x] piyo
`,
question: `## 質問
ほげほげにこたえてください
`,
options:[
{
label: 'はい',
next: 「はい」をクリックしたときに遷移する
documentオブジェクト
},
{
label: 'はい',
next: 「はい」をクリックしたときに遷移する
documentオブジェクト
},
{
label: 'はい',
next: 「はい」をクリックしたときに遷移する
documentオブジェクト
}
]
}
from dynamic-document.
ボタンを押したら,その遷移先となるurlをオブジェクトから取得して遷移させるといった処理がmodelって解釈で問題ないですか?
処理はmodelじゃないので,なんか違うかも・・・?
from dynamic-document.
@yu2799
Reactで作り始めちゃったので,私Reactのお作法全然知らなくて(読むくらいならできます)
一度ペアプロでもしてみますか?
from dynamic-document.
思った以上によくできてる!!ありがとう!!
from dynamic-document.
Related Issues (11)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamic-document.